Skip to main content

Module graph_tensor

Module graph_tensor 

Source
Expand description

Graph-Tensor Integration: Specialized implementations for seamless graph-tensor conversion

This module provides:

  • TensorGraph: Graph with native tensor node/edge features
  • GraphToTensor: Convert traditional graphs to tensor representations
  • TensorToGraph: Convert tensors back to graph structures
  • Adjacency matrix extraction and reconstruction
  • Feature matrix extraction for GNN workflows

Structs§

GraphAdjacencyMatrix
Adjacency matrix representation for graph neural networks
GraphBatch
Batch multiple graphs into a single tensor representation
GraphFeatureExtractor
Feature extractor for converting graphs to tensor representations
GraphReconstructor
Reconstruct graph from tensor representations

Traits§

GraphTensorExt
Extension trait for Graph to add tensor conversion methods