public class AdjacencyMatrix extends Object
Constructor and Description |
---|
AdjacencyMatrix(Graph g)
Creates a new adjacency matrix of a given graph g.
|
public AdjacencyMatrix(Graph g)
g
- - the given graphpublic String toCleanString()
public int getEntry(int row, int column)
row
- the row of the matrix.column
- the column of the matrix.(row, column)
in the matrix.public int[][] getEntries()
Copyright © 2013. All Rights Reserved.