| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.demokritos.iit.jinsect.documentModel.representations.DocumentNGramGraph
gr.demokritos.iit.jinsect.documentModel.representations.DocumentNGramDistroGraph
public class DocumentNGramDistroGraph
| Field Summary | |
|---|---|
protected  java.util.HashMap | 
EdgeDistros
 | 
| Fields inherited from class gr.demokritos.iit.jinsect.documentModel.representations.DocumentNGramGraph | 
|---|
CorrelationWindow, DataString, DegradedEdges, MaxSize, MinSize, NGramGraphArray, Normalizer, TextPreprocessor, WordEvaluator | 
| Constructor Summary | |
|---|---|
DocumentNGramDistroGraph()
Creates a new instance of DocumentNGramDistroGraph  | 
|
DocumentNGramDistroGraph(int iMinSize,
                         int iMaxSize,
                         int iCorrelationWindow)
 | 
|
| Method Summary | |
|---|---|
 java.lang.Object | 
clone()
 | 
 void | 
createEdgesConnecting(Graph gGraph,
                      java.lang.String sStartNode,
                      java.util.List lOtherNodes,
                      java.util.HashMap hAppearenceHistogram)
Creates an edge in a graph connecting a selected node to each node in a list of other nodes.  | 
 java.util.Map | 
getEdgesToDistros()
Returns a mapping of edges to corresponding distributions.  | 
protected  void | 
InitGraphs()
 | 
 DocumentNGramDistroGraph[] | 
intersectAndDeltaDistroGraph(DocumentNGramDistroGraph dgOtherGraph)
Returns both the intersection and the difference (inverse of the intersection) graph between the current graph and a given graph.  | 
 DocumentNGramDistroGraph | 
intersectDistroGraph(DocumentNGramDistroGraph dgOtherGraph)
Returns the intersection of two graphs as a new graph, containing only common nodes and their corresponding edges.  | 
 DocumentNGramDistroGraph | 
inverseIntersectDistroGraph(DocumentNGramDistroGraph dgOtherGraph)
Returns the difference (inverse of the intersection) graph between the current graph and a given graph.  | 
static void | 
main(java.lang.String[] sArgs)
 | 
 DocumentNGramDistroGraph | 
mergeDistroGraph(DocumentNGramDistroGraph dgOtherGraph)
TODO: Correct Merges the data of [dgOtherGraph] document graph to the data of this graph, by adding all existing edges and summing the histogram values of the edge distros of both graphs.  | 
| Methods inherited from class gr.demokritos.iit.jinsect.documentModel.representations.DocumentNGramGraph | 
|---|
calcCoexistenceImportance, calcCoexistenceImportance, createGraphs, createWeightedEdgesConnecting, degrade, degredationDegree, deleteItem, getAllNodes, getDataString, getGraphLevel, getGraphLevelByNGramSize, getMaxSize, getMinSize, getWindowSize, intersectGraph, inverseIntersectGraph, isEmpty, length, loadDataStringFromFile, mergeGraph, nullify, prune, setDataString, toCooccurenceText | 
| Methods inherited from class java.lang.Object | 
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected java.util.HashMap EdgeDistros
| Constructor Detail | 
|---|
public DocumentNGramDistroGraph()
public DocumentNGramDistroGraph(int iMinSize,
                                int iMaxSize,
                                int iCorrelationWindow)
| Method Detail | 
|---|
protected void InitGraphs()
InitGraphs in class DocumentNGramGraph
public void createEdgesConnecting(Graph gGraph,
                                  java.lang.String sStartNode,
                                  java.util.List lOtherNodes,
                                  java.util.HashMap hAppearenceHistogram)
createEdgesConnecting in class DocumentNGramGraphgGraph - The graph to usesStartNode - The node from which all edges beginlOtherNodes - The list of nodes to which sBaseNode is connectedhAppearenceHistogram - The histogram of appearences of the termspublic DocumentNGramDistroGraph mergeDistroGraph(DocumentNGramDistroGraph dgOtherGraph)
dgOtherGraph - The second graph used for the mergingpublic DocumentNGramDistroGraph intersectDistroGraph(DocumentNGramDistroGraph dgOtherGraph)
dgOtherGraph - The second graph used for the intersection.
DocumentNGramDistroGraph indicating the maximum common subgraph of the given graph the
 second graph.public DocumentNGramDistroGraph inverseIntersectDistroGraph(DocumentNGramDistroGraph dgOtherGraph)
dgOtherGraph - The graph to compare to.
public DocumentNGramDistroGraph[] intersectAndDeltaDistroGraph(DocumentNGramDistroGraph dgOtherGraph)
dgOtherGraph - The graph to use for intersection and difference.
public java.util.Map getEdgesToDistros()
public java.lang.Object clone()
clone in class DocumentNGramGraphpublic static void main(java.lang.String[] sArgs)
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||