public class SharedSuffixTrie<I> extends SuffixTrie<I>
SimpleGraph.NormalGraphView<N,G extends SimpleGraph<N>>
DEFAULT_GRAPH_REPRESENTABLE, nodes, root
Constructor and Description |
---|
SharedSuffixTrie(Alphabet<I> alphabet) |
SharedSuffixTrie(Alphabet<I> alphabet,
boolean graphRepresentable) |
Modifier and Type | Method and Description |
---|---|
SuffixTrieNode<I> |
add(I symbol,
SuffixTrieNode<I> parent)
Adds a word to the trie.
|
getNodes, getOutgoingEdges, getRoot, getTarget, getVisualizationHelper
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asNormalGraph
adjacentTargetsIterator, adjacentTargetsStream, getAdjacentTargets, getEdgesBetween, outgoingEdges, outgoingEdgesIterator, outgoingEdgesStream
iterator, nodeIDs, nodesStream, size
adjacentTargets, createDynamicNodeMapping, createStaticNodeMapping, isConnected
forEach, spliterator
public SuffixTrieNode<I> add(I symbol, SuffixTrieNode<I> parent)
SuffixTrie
add
in class SuffixTrie<I>
symbol
- the first symbol of the word.parent
- the remaining suffix of the word.Copyright © 2020. All rights reserved.