MCPcopy Index your code
hub / github.com/IBM/Project_CodeNet / adj_edge_add

Function adj_edge_add

tools/json-graph/src/jgflib.c:160–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160static void adj_edge_add(Node from, Edge e, Node to)
161{
162 e->from = from;
163 e->to = to;
164 if (from->last_out)
165 from->last_out->next_adj_out = e;
166 else
167 from->outgoing = e;
168 from->last_out = e;
169}
170
171/** Convert (nodelist,edgelist) graph into explicit adjacency structure.
172 Assume graph is directed.

Callers 2

mk_adjacency_graphFunction · 0.85
jsonml_elementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected