Question: please provide comments for this code: for ( String v : this.graphTwoVertices ) / * Converting string to graphTwoVertices * / { Set vNeighbours =

please provide comments for this code:
for (String v : this.graphTwoVertices)/* Converting string to graphTwoVertices*/{
Set vNeighbours = new HashSet();
vNeighbours.addAll(this.graphTwo.neighbours(v));/*used to accept keyword arguments*/
this.graphTwoAdjacencies.put(v, vNeighbours);
Set vIndexNeighbours = new HashSet();
for (String u : vNeighbours){
vIndexNeighbours.add(this.graphTwoVertexIndices.get(u));/*used to accept keyword arguments*/
}
this.graphTwoIndexAdjacencies.add(vIndexNeighbours);
}
this.upperbound = this.graphOne.numVertices()* this.VERTEXVALUE
+ Math.min(this.graphOne.numEdges(), this.graphTwo.numEdges())* this.EDGEVALUE;
this.individualSize = this.graphOneVertices.size();
`
System.out.println("Graph 1: "+ graphOne);
System.out.println("Graph 2: "+ graphTwo);
System.out.println("Upper bound: "+ this.upperbound);
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!