Skip to content

Commit

Permalink
graph example from paper
Browse files Browse the repository at this point in the history
  • Loading branch information
sandragreiner committed Jun 16, 2024
1 parent aa5cb14 commit 6ef2f2b
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/graph/variant1/config1.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
G
E
W
11 changes: 11 additions & 0 deletions data/graph/variant1/src/Graph.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import java.util.List;
import java.util.LinkedList;

// configuration: G and E and W
// Feat: Graph
public interface Graph {
List<Node> nodes();
// Feat: E
List<Edge> edges();
List<Node> nodes(double weight);
}
3 changes: 3 additions & 0 deletions data/graph/variant2/config2.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
G
E
D
11 changes: 11 additions & 0 deletions data/graph/variant2/src/Graph.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import java.util.List;

// configuration: G and E and D

public interface Graph {
List<Node> nodes();
List<Edge> edges();
List<Edge> incomingEdges(Node n);
// Feat: C
Graph subGraph(Color c);
}
3 changes: 3 additions & 0 deletions data/graph/variant3/config3.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
G
E
C
11 changes: 11 additions & 0 deletions data/graph/variant3/src/Graph.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import java.util.List;

// configuration: G and E and C

public interface Graph {
List<Node> nodes();
List<Node> nodes(Color c);
List<Edge> edges();
// Feat: C
Graph subGraph(Color c);
}

0 comments on commit 6ef2f2b

Please sign in to comment.