Working graph logic