MCPcopy Create free account
hub / github.com/Notgnoshi/generative / add_edge

Method add_edge

generative/noding/geometry-graph.cpp:45–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void GeometryGraph::add_edge(std::size_t src, std::size_t dst)
46{
47 m_nodes[src].adjacencies.emplace(dst);
48 m_nodes[dst].adjacencies.emplace(src);
49}
50
51std::vector<std::pair<const GeometryGraph::Node&, const GeometryGraph::Node&>>
52GeometryGraph::get_edge_pairs() const

Callers 6

TESTFunction · 0.80
fromMethod · 0.80
digraphMethod · 0.80
attempt_to_joinMethod · 0.80
from_nodes_edgesFunction · 0.80
read_tgf_graphFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64