MCPcopy Create free account
hub / github.com/CyberPoint/libpgm / load

Method load

libpgm/orderedskeleton.py:44–55  ·  view source on GitHub ↗

Loads a dictionary from a file located at *path* in the same manner as :doc:`graphskeleton`, but includes a step where it topologically orders the nodes.

(self, path)

Source from the content-addressed store, hash-verified

42 '''A list of [origin, destination] pairs of verties that constitute edges.'''
43
44 def load(self, path):
45 '''Loads a dictionary from a file located at *path* in the same manner as :doc:`graphskeleton`, but includes a step where it topologically orders the nodes.'''
46
47 self.dictload(path)
48 self.V = self.alldata["V"]
49 self.E = self.alldata["E"]
50
51 # topologically order
52 self.toporder()
53
54 # free unused memory
55 del self.alldata

Callers

nothing calls this directly

Calls 2

dictloadMethod · 0.80
toporderMethod · 0.80

Tested by

no test coverage detected