MCPcopy Create free account
hub / github.com/easy-graph/Easy-Graph / add_start_end

Method add_start_end

easygraph/readwrite/gexf.py:777–786  ·  view source on GitHub ↗
(self, data, xml)

Source from the content-addressed store, hash-verified

775 G.add_node(node_id, **data)
776
777 def add_start_end(self, data, xml):
778 # start and end times
779 ttype = self.timeformat
780 node_start = xml.get("start")
781 if node_start is not None:
782 data["start"] = self.python_type[ttype](node_start)
783 node_end = xml.get("end")
784 if node_end is not None:
785 data["end"] = self.python_type[ttype](node_end)
786 return data
787
788 def add_viz(self, data, node_xml):
789 # add viz element for node

Callers 2

add_nodeMethod · 0.95
add_edgeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected