Package edu.fiu.jtlex.data
Class Partitioner
java.lang.Object
edu.fiu.jtlex.data.Partitioner
Class used to partition an input TimeML temporal graph into main subgraph and
subordinating subgraphs. TimeML graphs are split by trimming all instances of
ILinks that are of type SLinkType and then reassembling the graphs using
edges.
- Author:
- Emmanuel Garcia
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclassifyGraphs(ArrayList<IGraph> graphs)Finds the graph with the most nodes and classifies it as a MainGraph and set the others to a subordination graph.partitionGraph(IGraph timeMLGraph)Returns a list of partitioned subgraphs.This method returns the set of partition links (solo subordination timelinks).
-
Constructor Details
-
Partitioner
public Partitioner()
-
-
Method Details
-
partitionGraph
Returns a list of partitioned subgraphs.This method takes a TimeML graph, removes all the Subordination type links, then reassembles the graph, and finally returns an array of the partitioned subgraphs.
- Parameters:
timeMLGraph- the main TimeML graph to be partitioned.- Returns:
- an
ArrayList<IGraph>of partitioned subgraphs
-
classifyGraphs
Finds the graph with the most nodes and classifies it as a MainGraph and set the others to a subordination graph.- Parameters:
graphs- the list of graphs to be classified.- Returns:
- the classified graphs.
-
partitionLinks
This method returns the set of partition links (solo subordination timelinks).These links are obtained from partitioning a TimeML graph. This method can only be used AFTER
partitionGraph(IGraph)has been used to partition a graph.- Returns:
- set of partition links (solo subordination timelinks).
-