Structures
A module contains data structures and helper models used across the HexTractor package.
EdgeData
Edge data, extracted from the source
Source code in hextractor/structures.py
EdgeTypeParams
Bases: BaseModel
Edge type specs, used during the extraction process
Source code in hextractor/structures.py
EdgesData
Dictionary of multiple edge data
Source code in hextractor/structures.py
NodeData
Node data, extracted from the source
Source code in hextractor/structures.py
NodeTypeParams
Bases: BaseModel
Node type specs, used during the extraction process
Source code in hextractor/structures.py
NodesData
Dictionary of multiple node data
Source code in hextractor/structures.py
VisualizationConfig
Bases: BaseModel
Config for visualization of the heterogeneous graph
Source code in hextractor/structures.py
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 | |
check_consistency()
Validates the consistency of the setup - all node and edge types should be selected, additionally: edge source/targets should match the node types.
Raises:
| Type | Description |
|---|---|
ValueError
|
If edge/node inconsistency is detected. |