public class GraphPrinter extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
graphFolderSegment |
static int |
ORIGINAL_GRAPH |
static int |
PROJECTED_GRAPH |
| Constructor and Description |
|---|
GraphPrinter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanOutputFolder(String outputFolder)
Clean the given folder recursively to allow dumping of new graphs
|
static <V,T> void |
dumpGraph(ComponentToImplementingClassesHelper componentToClassesHelper,
<any> relationshipGraph,
String outputFolder,
int iteration,
int subgraphNo)
Dump the given graph in both DOT and GraphML format
|
public static final int ORIGINAL_GRAPH
public static final int PROJECTED_GRAPH
public static final String graphFolderSegment
public static void cleanOutputFolder(String outputFolder)
outputFolder - The folder to deletepublic static <V,T> void dumpGraph(ComponentToImplementingClassesHelper componentToClassesHelper, <any> relationshipGraph, String outputFolder, int iteration, int subgraphNo)
V - Type of the graph's verticesT - Type of the graph's edgescomponentToClassesHelper - Helper class used to retrieve the classes implementing a componentrelationshipGraph - The graph to dumpoutputFolder - The folder in which the graph is dumpediteration - Iteration number used to create the filenamesubgraphNo - Subgraph number used to create the filename