org.apache.tez.dag.utils
Class Graph

java.lang.Object
  extended by org.apache.tez.dag.utils.Graph

@InterfaceAudience.Private
public class Graph
extends Object


Nested Class Summary
 class Graph.Edge
           
 class Graph.Node
           
 
Constructor Summary
Graph()
           
Graph(String name)
           
Graph(String name, Graph parent)
           
 
Method Summary
 void addSubGraph(Graph graph)
           
static List<Graph.Edge> combineEdges(List<Graph.Edge> edges)
           
 String generateGraphViz()
           
 String generateGraphViz(String indent)
           
 String getName()
           
 Graph.Node getNode(String id)
           
 Graph getParent()
           
 Graph.Node newNode(String id, String label)
           
 Graph newSubGraph(String name)
           
 void save(String filePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graph

public Graph(String name,
             Graph parent)

Graph

public Graph(String name)

Graph

public Graph()
Method Detail

getName

public String getName()

getParent

public Graph getParent()

newNode

public Graph.Node newNode(String id,
                          String label)

getNode

public Graph.Node getNode(String id)

newSubGraph

public Graph newSubGraph(String name)

addSubGraph

public void addSubGraph(Graph graph)

generateGraphViz

public String generateGraphViz(String indent)

generateGraphViz

public String generateGraphViz()

save

public void save(String filePath)
          throws IOException
Throws:
IOException

combineEdges

public static List<Graph.Edge> combineEdges(List<Graph.Edge> edges)


Copyright © 2014 Apache Software Foundation. All rights reserved.