Package org.graph4j

Class UndirectedGraphAlgorithm

java.lang.Object
org.graph4j.UndirectedGraphAlgorithm
Direct Known Subclasses:
ChordalGraphSupport, TriangleCounter

public abstract class UndirectedGraphAlgorithm extends Object
Abstract class for algorithms that accept only undirected graphs as input.
Author:
Cristian Frăsinaru
  • Field Details

    • graph

      protected final Graph graph
  • Constructor Details

    • UndirectedGraphAlgorithm

      public UndirectedGraphAlgorithm(Graph graph)
      Creates a new instance of the algorithm.
      Parameters:
      graph - the input undirected graph
      Throws:
      NullPointerException - if the graph is null.
      IllegalArgumentException - if the graph is directed.