Class HyperGraphExample

java.lang.Object
org.tweetyproject.graphs.examples.HyperGraphExample

public class HyperGraphExample extends Object
This class provides an example of creating and working with a hypergraph. A hypergraph is a generalized graph where edges, called hyperedges, can connect more than two vertices (nodes). This example demonstrates adding nodes and hyperedges to the hypergraph, and generating its complement graph.
Author:
Sebastian Franke
  • Constructor Details

    • HyperGraphExample

      public HyperGraphExample()
  • Method Details

    • main

      public static void main(String[] args)
      The main method that runs the hypergraph example. It creates a hypergraph, adds nodes and directed hyperedges to it, and generates the complement of the hypergraph. The result of the complement graph is printed to the console.
      Parameters:
      args - Command-line arguments (not used in this example).