added some graph analysis