Class HeterogeneousGraphMetadata
- Namespace
- AiDotNet.NeuralNetworks.Layers
- Assembly
- AiDotNet.dll
Represents metadata for heterogeneous graphs with multiple node and edge types.
public class HeterogeneousGraphMetadata
- Inheritance
-
HeterogeneousGraphMetadata
- Inherited Members
Remarks
For Beginners: This defines the "schema" of your heterogeneous graph.
Think of a knowledge graph with different types of entities and relationships:
- Node types: Person, Company, Product
- Edge types: WorksAt, Manufactures, Purchases
This metadata tells the layer what types exist and how they connect.
Properties
EdgeTypeSchema
Edge type connections: maps edge type to (source node type, target node type).
public Dictionary<string, (string SourceType, string TargetType)> EdgeTypeSchema { get; set; }
Property Value
EdgeTypes
Names of edge types (e.g., ["likes", "belongs_to", "similar_to"]).
public string[] EdgeTypes { get; set; }
Property Value
- string[]
NodeTypeFeatures
Input feature dimensions for each node type.
public Dictionary<string, int> NodeTypeFeatures { get; set; }
Property Value
NodeTypes
Names of node types (e.g., ["user", "item", "category"]).
public string[] NodeTypes { get; set; }
Property Value
- string[]