Working graph without traversals