1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//! Graph neural network embedding models (v0.3.0).
//!
//! This module provides production-ready GNN implementations for
//! knowledge graph and general graph embedding tasks:
//!
//! - [`graphsage`]: GraphSAGE - inductive representation learning via
//! neighbor sampling with multiple aggregator strategies.
//! - [`gat`]: Graph Attention Networks - multi-head attention for
//! adaptive neighborhood aggregation.
//!
//! ## Quick Start
//!
//! ### GraphSAGE
//! ```rust,no_run
//! use oxirs_embed::graph_models::graphsage::{Graph, GraphSAGEConfig, GraphSAGEModel};
//!
//! # fn main() -> anyhow::Result<()> {
//! let config = GraphSAGEConfig {
//! input_dim: 16,
//! hidden_dims: vec![32],
//! output_dim: 8,
//! ..Default::default()
//! };
//! let model = GraphSAGEModel::new(config)?;
//! // Build your graph, then:
//! // let embeddings = model.embed(&graph)?;
//! # Ok(())
//! # }
//! ```
//!
//! ### GAT
//! ```rust,no_run
//! use oxirs_embed::graph_models::gat::{GATConfig, GATModel};
//!
//! # fn main() -> anyhow::Result<()> {
//! let config = GATConfig {
//! input_dim: 16,
//! output_head_dim: 8,
//! num_layers: 2,
//! ..Default::default()
//! };
//! let model = GATModel::new(config)?;
//! # Ok(())
//! # }
//! ```
// Re-export commonly used types for convenience
pub use ;
pub use ;