prototype of TopologyGraph