Skip to content

defaults

Attributes

NODE_ID_COLUMN_NAME = '_node_id' module-attribute

EDGE_ID_COLUMN_NAME = '_edge_id' module-attribute

SOURCE_COLUMN_NAME = '_source' module-attribute

TARGET_COLUMN_NAME = '_target' module-attribute

LABEL_COLUMN_NAME = '_label' module-attribute

COMPONENT_ID_COLUMN_NAME = 'component_id' module-attribute

IS_CUTPOINT_COLUMN_NAME = 'is_cut_point' module-attribute

EDGES_TABLE_NAME = 'edges' module-attribute

NODES_TABLE_NAME = 'nodes' module-attribute

DEFAULT_NETWORK_DATA_CHUNK_SIZE = 1024 module-attribute

NODE_ID_ALIAS_NAMES = ['id', 'node_id'] module-attribute

LABEL_ALIAS_NAMES = ['label', 'node_label'] module-attribute

SOURCE_COLUMN_ALIAS_NAMES = ['source', 'sources', 'source_id', 'from', 'sender'] module-attribute

TARGET_COLUMN_ALIAS_NAMES = ['target', 'targets', 'target_id', 'to', 'receiver'] module-attribute

ATTRIBUTE_PROPERTY_KEY = 'attribute_property' module-attribute

COUNT_DIRECTED_COLUMN_NAME = '_count_dup_directed' module-attribute

COUNT_UNDIRECTED_COLUMN_NAME = '_count_dup_undirected' module-attribute

COUNT_IDX_DIRECTED_COLUMN_NAME = '_idx_dup_directed' module-attribute

COUNT_IDX_UNDIRECTED_COLUMN_NAME = '_idx_dup_undirected' module-attribute

IN_DIRECTED_COLUMN_NAME = '_in_edges' module-attribute

OUT_DIRECTED_COLUMN_NAME = '_out_edges' module-attribute

CONNECTIONS_COLUMN_NAME = '_count_edges' module-attribute

IN_DIRECTED_MULTI_COLUMN_NAME = '_in_edges_multi' module-attribute

OUT_DIRECTED_MULTI_COLUMN_NAME = '_out_edges_multi' module-attribute

CONNECTIONS_MULTI_COLUMN_NAME = '_count_edges_multi' module-attribute

RANKING_TABLE_NAME = 'ranking' module-attribute

RANKING_COLUNN_NAME = '_rank' module-attribute

RANKING_VALUE_COLUMN_NAME = '_value' module-attribute

AUTO_CALCULATED_EDGE_COLUMNS = [EDGE_ID_COLUMN_NAME, SOURCE_COLUMN_NAME, TARGET_COLUMN_NAME, COUNT_DIRECTED_COLUMN_NAME, COUNT_IDX_DIRECTED_COLUMN_NAME, COUNT_UNDIRECTED_COLUMN_NAME, COUNT_IDX_UNDIRECTED_COLUMN_NAME] module-attribute

AUTO_CALCULATED_NODE_COLUMNS = [NODE_ID_COLUMN_NAME, LABEL_COLUMN_NAME, IN_DIRECTED_COLUMN_NAME, OUT_DIRECTED_COLUMN_NAME, IN_DIRECTED_MULTI_COLUMN_NAME, OUT_DIRECTED_MULTI_COLUMN_NAME] module-attribute

NODE_ID_TEXT = 'The unique id for the node.\n\nThis is a unique integer identifier (counting up from 0) and is automatically generated by kiara, for each `network_data` value.\n' module-attribute

NODE_LABEL_TEXT = "The label for the node.\n\nThis is a (potentially non-unique) (ideally) human meaningful lable for the node, mostly used in visualizations. Depending on\nhow the 'network_data' was created, this could be a name, title, etc. If no such label was available or specified\nby the user, the node id will be used as label.\n" module-attribute

NODE_COUNT_EDGES_TEXT = 'The number of edges that are connected to this node if the network_data is interpreted as a non-multi graph\n\nBoth incoming and outgoing edges are counted, which means that the number is valid for both directed and undirected graphs.\n.' module-attribute

NODE_COUNT_EDGES_MULTI_TEXT = 'The number of edges that are connected to this node if the network_data is interpreted as a multi graph\n\nBoth incoming and outgoing edges are counted, which means that the number is valid for both directed and undirected graphs.' module-attribute

NODE_COUNT_IN_EDGES_TEXT = 'The number of incoming edges that are connected to this node if the network_data is interpreted as a non-multi graph.' module-attribute

NODE_COUNT_IN_EDGES_MULTI_TEXT = 'The number of incoming edges that are connected to this node if the network_data is interpreted as a multi graph.' module-attribute

NODE_COUNT_OUT_EDGES_TEXT = 'The number of outgoing edges that are connected to this node if the network_data is interpreted as a non-multi graph.' module-attribute

NODE_COUNT_OUT_EDGES_MULTI_TEXT = 'The number of outgoing edges that are connected to this node if the network_data is interpreted as a multi graph.' module-attribute

EDGE_ID_TEXT = 'The unique id for the edge.\n\nThis is a unique integer identifier (counting up from 0) and is automatically generated by kiara, for each `network_data` value.\n' module-attribute

EDGE_SOURCE_TEXT = 'The node id of the source for an edge.' module-attribute

EDGE_TARGET_TEXT = 'The node id of the target for an edge.' module-attribute

EDGE_COUNT_DUP_DIRECTED_TEXT = 'The number of edges that have the same source/target combination as this (incl. this), if the network_data is interpreted as directed multi graph.\n' module-attribute

EDGE_IDX_DUP_DIRECTED_TEXT = 'A unique index for this edge within its set of duplicates, if the network_data is interpreted as directed multi graph.\n\nThis is a unique integer identifier in combination with (_source/_target), counting up from 0. The order of the edges within this set is not guaranteed.\n' module-attribute

EDGE_COUNT_DUP_UNDIRECTED_TEXT = 'The number of edges that have the same source/target combination as this (incl. this), if the network_data is interpreted as undirected multi graph.' module-attribute

EDGE_IDX_DUP_UNDIRECTED_TEXT = 'A unique index for this edge within its set of duplicates, if the network_data is interpreted as undirected multi graph.\n\nThis is a unique integer identifier in combination with (_source/_target), counting up from 0. The order of the edges within this set is not guaranteed.\n' module-attribute

ALLOWED_AGGREGATION_FUNCTIONS = {'group_by': "Don't aggregate on this column, but keep it as is and use it in the group by clause.", 'any_val': 'Returns the first non-null value', 'avg': 'Calculates the average value for all tuples in arg.', 'bool_and': 'Returns TRUE if every input value is TRUE, otherwise FALSE.', 'bool_or': 'Returns TRUE if any input value is TRUE, otherwise FALSE.', 'count': 'Returns the number of input values.', 'favg': 'Calculates the average using a more accurate floating point summation (Kahan Sum).', 'first': 'Returns the first value of a column.', 'fsum': 'Calculates the sum using a more accurate floating point summation (Kahan Sum).', 'histogram': 'Returns a LIST of STRUCTs with the fields bucket and count.', 'last': 'Returns the last value of a column.', 'list': 'Returns a LIST containing all the values of a column.', 'max': 'Returns the maximum value present in the column.', 'min': 'Returns the minimum value present in the column.', 'product': 'Returns the product of all tuples in the column.', 'string_agg_comma': 'Concatenates the column string values with a comma separator.', 'sum': 'Calculates the sum value for all tuples in arg.'} module-attribute

AGGREGATION_FUNCTION_NAME = Literal[tuple(ALLOWED_AGGREGATION_FUNCTIONS.keys())] module-attribute

Classes

NetworkDataTableType

Bases: Enum

Source code in /opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/kiara_plugin/network_analysis/defaults.py
79
80
81
class NetworkDataTableType(Enum):
    EDGES = EDGES_TABLE_NAME
    NODES = NODES_TABLE_NAME

Attributes

EDGES = EDGES_TABLE_NAME class-attribute instance-attribute
NODES = NODES_TABLE_NAME class-attribute instance-attribute

GraphType

Bases: Enum

Source code in /opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/kiara_plugin/network_analysis/defaults.py
84
85
86
87
88
class GraphType(Enum):
    UNDIRECTED = "undirected"
    DIRECTED = "directed"
    DIRECTED_MULTI = "directed_multi"
    UNDIRECTED_MULTI = "undirected_multi"

Attributes

UNDIRECTED = 'undirected' class-attribute instance-attribute
DIRECTED = 'directed' class-attribute instance-attribute
DIRECTED_MULTI = 'directed_multi' class-attribute instance-attribute
UNDIRECTED_MULTI = 'undirected_multi' class-attribute instance-attribute