pub struct GraphData {
pub node_features: Vec<Vec<f32>>,
pub adjacency: Vec<Vec<usize>>,
pub num_nodes: usize,
}Expand description
Sparse graph representation.
Fields§
§node_features: Vec<Vec<f32>>Node feature matrix: node_features[i] is the feature vector for node i.
adjacency: Vec<Vec<usize>>Adjacency list: adjacency[i] contains neighbor indices of node i.
num_nodes: usizeNumber of nodes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphData
impl RefUnwindSafe for GraphData
impl Send for GraphData
impl Sync for GraphData
impl Unpin for GraphData
impl UnsafeUnpin for GraphData
impl UnwindSafe for GraphData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more