analysis.thread¶
-
class
bigbang.analysis.thread.
Node
(ID, data=None, parent=None)¶ Bases:
object
Form a Node object. ID: Message ID, data: Information about that message, parent: the message’s reply-to
-
add_successor
(successor: list)¶ Add a node which has a message that is a reply to this node
-
get_data
()¶ Return the Information about this message
-
get_id
()¶ Return message ID
-
get_parent
()¶ Return Information in the data set about this message
-
get_successors
()¶ Return a list of nodes of messages which are replies to this node
-
properties
()¶ Return various properties about the tree with this node as root.
-
-
class
bigbang.analysis.thread.
Thread
(root, known_root=True)¶ Bases:
object
Form a thread object. root: the node of the message that start the thread known_root: indicator whether the root node is in our data set
-
get_content
()¶
-
get_duration
()¶ Return the time duration of the thread
-
get_leaves
()¶
-
get_not_leaves
()¶
-
get_num_messages
()¶ Return the number of messages in the thread
-
get_num_people
()¶ Return the number of people in the thread
-
get_root
()¶ Return the root node.
-