Class DefaultGraphMatrix<N,E>

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Matrix>, HasMetaData, BaseMatrix, BooleanCalculations, CanPerformCalculations, DenseMatrix, DenseMatrix2D, DenseMatrixMultiD, BasicDoubleCalculations, DoubleCalculations, BasicEntrywiseDoubleCalculations, CreatorDoubleCalculations, EntrywiseDoubleCalculations, HyperbolicDoubleCalculations, MiscEntrywiseDoubleCalculations, RoundingDoubleCalculations, TrigonometricDoubleCalculations, DecompositionDoubleCalculations, DiscretizeCalculations, GeneralDoubleCalculations, MiscGeneralDoubleCalculations, MissingValueDoubleCalculations, StatisticalDoubleCalculations, BaseGenericMatrix<E>, DenseGenericMatrix<E>, DenseGenericMatrix2D<E>, DenseGenericMatrixMultiD<E>, GenericMatrix<E>, GenericMatrix2D<E>, GenericMatrixMultiD<E>, SparseGenericMatrix<E>, SparseGenericMatrix2D<E>, SparseGenericMatrixMultiD<E>, GraphMatrix<N,E>, BaseMatrixProperties, Clearable, Conversions, CoordinateFunctions, CoreObject, DistanceMeasures, ExtendedMatrixProperties, GettersAndSetters, HasDescription, HasGUIObject, HasId, HasLabel, IntCalculations, Matrix, Matrix2D, MatrixMultiD, ObjectCalculations, SparseMatrix, SparseMatrix2D, SparseMatrixMultiD, StringCalculations

public class DefaultGraphMatrix<N,E> extends AbstractGraphMatrix<N,E>
See Also:
  • Field Details

  • Constructor Details

    • DefaultGraphMatrix

      public DefaultGraphMatrix()
    • DefaultGraphMatrix

      public DefaultGraphMatrix(List<N> nodes)
  • Method Details

    • getEdgeList

      public Collection<E> getEdgeList()
    • availableCoordinates

      public Iterable<long[]> availableCoordinates()
      Description copied from interface: CoordinateFunctions
      Returns an Iterator that only goes over the coordinates in the Matrix that are stored. For most Matrices, this is the same as allCoordinates(). For sparse Matrices, it iterates only over the entries in it.
      Specified by:
      availableCoordinates in interface CoordinateFunctions
      Overrides:
      availableCoordinates in class AbstractGraphMatrix<N,E>
      Returns:
      Iterable over the saved entries in a Matrix.
    • getNodeList

      public List<N> getNodeList()
    • addNode

      public void addNode(N o)
    • removeNode

      public void removeNode(N o)
    • getEdgeCount

      public int getEdgeCount()
    • getNodeCount

      public int getNodeCount()
    • clear

      public void clear()
    • getChildCount

      public int getChildCount(long nodeIndex)
    • getNode

      public N getNode(long index)
    • getParentCount

      public int getParentCount(long nodeIndex)
    • getParentIndices

      public List<Long> getParentIndices(long index)
    • getChildIndices

      public List<Long> getChildIndices(long index)
    • removeNode

      public void removeNode(long node)
    • isDirected

      public boolean isDirected()
    • setDirected

      public void setDirected(boolean directed)
    • setNode

      public void setNode(N node, long index)
    • setEdge

      public void setEdge(E edge, long nodeIndex1, long nodeIndex2)
    • setEdge

      public void setEdge(E edge, N node1, N node2)
    • getValueType

      public ValueType getValueType()
      Specified by:
      getValueType in interface BaseMatrixProperties
      Overrides:
      getValueType in class AbstractMatrix
    • getEdge

      public E getEdge(long nodeIndex1, long nodeIndex2)
    • removeEdge

      public void removeEdge(E edge)
    • removeEdge

      public void removeEdge(N node1, N node2)
    • removeEdge

      public void removeEdge(long nodeIndex1, long nodeIndex2)