added 2 functions to get complete network as network or property graph.