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

Method add_weighted_edge

easygraph/classes/graph.py:858–860  ·  view source on GitHub ↗
(self, u_of_edge, v_of_edge, weight)

Source from the content-addressed store, hash-verified

856 self._clear_cache()
857
858 def add_weighted_edge(self, u_of_edge, v_of_edge, weight):
859 self._add_one_edge(u_of_edge, v_of_edge, edge_attr={"weight": weight})
860 self._clear_cache()
861
862 def add_edges(self, edges_for_adding, edges_attr: List[Dict] = []):
863 """Add a list of edges.

Callers

nothing calls this directly

Calls 2

_add_one_edgeMethod · 0.95
_clear_cacheMethod · 0.95

Tested by

no test coverage detected