Package Graphs.Abstraction
Class AbstractMatrixGraph<A extends AbstractNode>
- java.lang.Object
-
- Graphs.Abstraction.AbstractMatrixGraph<A>
-
- All Implemented Interfaces:
IGraph
- Direct Known Subclasses:
AdjacencyMatrixDirectedGraph
,AdjacencyMatrixUndirectedGraph
public abstract class AbstractMatrixGraph<A extends AbstractNode> extends Object implements IGraph
-
-
Constructor Summary
Constructors Constructor Description AbstractMatrixGraph()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int[][]
getMatrix()
Returns the list of nodes in the graphint
getNbNodes()
Returns the number of nodes in the graph (referred to as the order of the graph)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface Graphs.Abstraction.IGraph
toAdjacencyMatrix
-
-
-
-
Method Detail
-
getMatrix
public int[][] getMatrix()
Returns the list of nodes in the graph- Returns:
- list of nodes in the graph
-
getNbNodes
public int getNbNodes()
Returns the number of nodes in the graph (referred to as the order of the graph)- Specified by:
getNbNodes
in interfaceIGraph
- Returns:
- the number of nodes in the graph
-
-