jInfer

cz.cuni.mff.ksi.jinfer.iss.utils
Class GraphUtils

java.lang.Object
  extended by cz.cuni.mff.ksi.jinfer.iss.utils.GraphUtils

public final class GraphUtils
extends Object

Utility class to get the "graph representation" info from an AM model.


Method Summary
static Pair<Integer,Integer> getGraphRepresentation(AMModel model)
          Returns the graph representation info for the provided model.
static String getGraphVizInput(AMModel model)
          Returns a graph representation of the specified model in GraphViz language.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getGraphRepresentation

public static Pair<Integer,Integer> getGraphRepresentation(AMModel model)
Returns the graph representation info for the provided model.

Parameters:
model - AM model to get info from.
Returns:
A pair containing the number of vertices in the first item and the number of edges in the second.

getGraphVizInput

public static String getGraphVizInput(AMModel model)
Returns a graph representation of the specified model in GraphViz language. The GraphViz input generated will be as follows:

Parameters:
model - AM model to create GraphViz input from.
Returns:
String representation of the GraphViz input.

jInfer

Generated on Fri Dec 9 00:01:25 CET 2011