MCPcopy Create free account
hub / github.com/Rishabh062/Hacktoberfest2021 / toString

Method toString

Java/graphs/MyGraph.java:32–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 return -1;
31 }
32 public String toString(){
33 if(size==0) return "{}";
34 String buf="{"+vertex(0);
35 for (int i=1;i<size;i++) {
36 buf+=","+vertex(i);
37 }return buf+"}";
38
39 }
40
41 private String vertex(int i){
42 String buf=vertices[i]+":";

Callers 1

isPalindromeNumberMethod · 0.45

Calls 1

vertexMethod · 0.95

Tested by

no test coverage detected