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

Method add_slices

easygraph/readwrite/gexf.py:842–850  ·  view source on GitHub ↗
(self, data, node_or_edge_xml)

Source from the content-addressed store, hash-verified

840 return data
841
842 def add_slices(self, data, node_or_edge_xml):
843 slices_element = node_or_edge_xml.find(f"{{{self.NS_GEXF}}}slices")
844 if slices_element is not None:
845 data["slices"] = []
846 for s in slices_element.findall(f"{{{self.NS_GEXF}}}slice"):
847 start = s.get("start")
848 end = s.get("end")
849 data["slices"].append((start, end))
850 return data
851
852 def add_spells(self, data, node_or_edge_xml):
853 spells_element = node_or_edge_xml.find(f"{{{self.NS_GEXF}}}spells")

Callers 2

add_nodeMethod · 0.95
add_edgeMethod · 0.95

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected