MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / CreateGraph

Method CreateGraph

Programs/BellmanFord.java:18–24  ·  view source on GitHub ↗
(int v, int e)

Source from the content-addressed store, hash-verified

16
17 // Creates a graph with V vertices and E edges
18 CreateGraph(int v, int e) {
19 V = v;
20 E = e;
21 edge = new CreateEdge[e];
22 for (int i = 0; i < e; ++i)
23 edge[i] = new CreateEdge();
24 }
25
26 void BellmanFord(CreateGraph graph, int s) {
27 int V = graph.V, E = graph.E;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected