UtteranceNode¶
-
class
convokit.model.utteranceNode.
UtteranceNode
(utt: convokit.model.utterance.Utterance)¶ Wrapper class around Utterances to facilitiate tree traversal operations
- Variables
utt – the Utterance that this Node corresponds to
children – a List of Utterance nodes that correspond to Utterances that respond to this node’s Utterance
-
bfs_traversal
()¶ Breadth-first-search traversal
-
dfs_traversal
()¶ Depth-first search traversal
-
post_order
()¶ Post-order traversal
-
pre_order
()¶ Pre-order traversal