Class AbstractMatrixGraph<A extends AbstractNode>

    • Field Detail

      • order

        protected int order
      • m

        protected int m
      • matrix

        protected int[][] matrix
    • Constructor Detail

      • AbstractMatrixGraph

        public AbstractMatrixGraph()
    • 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 interface IGraph
        Returns:
        the number of nodes in the graph