gr.demokritos.iit.jinsect.documentModel.representations
Class DocumentNGramSymWinGraph

java.lang.Object
  extended by gr.demokritos.iit.jinsect.documentModel.representations.DocumentNGramGraph
      extended by gr.demokritos.iit.jinsect.documentModel.representations.DocumentNGramSymWinGraph
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class DocumentNGramSymWinGraph
extends DocumentNGramGraph

See Also:
Serialized Form

Field Summary
 EdgeCachedLocator eclLocator
          Speeds up edge location in a given graph, by caching last searches.
 
Fields inherited from class gr.demokritos.iit.jinsect.documentModel.representations.DocumentNGramGraph
CorrelationWindow, DataString, DegradedEdges, MaxSize, MinSize, NGramGraphArray, Normalizer, TextPreprocessor, WordEvaluator
 
Constructor Summary
DocumentNGramSymWinGraph()
           
DocumentNGramSymWinGraph(int iMinSize, int iMaxSize, int iCorrelationWindow)
           
 
Method Summary
 void createGraphs()
          Creates the graph of n-grams, for all the levels specified in the MinSize, MaxSize range.
 void createSymEdgesConnecting(Graph gGraph, java.lang.String sStartNode, java.util.List lOtherNodes, java.util.HashMap hAppearenceHistogram)
          Creates an edge in [gGraph] connecting [sStartNode] to each node in the [lOtherNodes] list of nodes, as well as other nodes to [sBaseNode].
static void main(java.lang.String[] args)
           
 
Methods inherited from class gr.demokritos.iit.jinsect.documentModel.representations.DocumentNGramGraph
calcCoexistenceImportance, calcCoexistenceImportance, clone, createEdgesConnecting, createWeightedEdgesConnecting, degrade, degredationDegree, deleteItem, getAllNodes, getDataString, getGraphLevel, getGraphLevelByNGramSize, getMaxSize, getMinSize, getWindowSize, InitGraphs, 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

eclLocator

public EdgeCachedLocator eclLocator
Speeds up edge location in a given graph, by caching last searches.

Constructor Detail

DocumentNGramSymWinGraph

public DocumentNGramSymWinGraph()

DocumentNGramSymWinGraph

public DocumentNGramSymWinGraph(int iMinSize,
                                int iMaxSize,
                                int iCorrelationWindow)
Method Detail

createGraphs

public void createGraphs()
Description copied from class: DocumentNGramGraph
Creates the graph of n-grams, for all the levels specified in the MinSize, MaxSize range.

Overrides:
createGraphs in class DocumentNGramGraph

createSymEdgesConnecting

public void createSymEdgesConnecting(Graph gGraph,
                                     java.lang.String sStartNode,
                                     java.util.List lOtherNodes,
                                     java.util.HashMap hAppearenceHistogram)
Creates an edge in [gGraph] connecting [sStartNode] to each node in the [lOtherNodes] list of nodes, as well as other nodes to [sBaseNode]. If an edge exists, its weight is increased by [iIncreaseWeight], else its weight is set to [iStartWeight]

Parameters:
gGraph - The graph to use
sStartNode - The node from which all edges begin
lOtherNodes - The list of nodes to which sBaseNode is connected. The list MUST BE ORDERED ASCENDINGLY based on distance from the sStartNode.
hAppearenceHistogram - The histogram of appearences of the terms

main

public static void main(java.lang.String[] args)