pub struct PyGMetadata {
pub name: String,
pub num_nodes: usize,
pub num_edges: usize,
pub node_feature_dim: usize,
pub edge_feature_dim: usize,
pub num_node_classes: usize,
pub num_edge_classes: usize,
pub node_types: HashMap<String, usize>,
pub edge_types: HashMap<String, usize>,
pub is_directed: bool,
pub files: Vec<String>,
pub statistics: HashMap<String, f64>,
}Expand description
Metadata about the exported PyG data.
Fields§
§name: StringGraph name.
num_nodes: usizeNumber of nodes.
num_edges: usizeNumber of edges.
node_feature_dim: usizeNode feature dimension.
edge_feature_dim: usizeEdge feature dimension.
num_node_classes: usizeNumber of node classes (for classification).
num_edge_classes: usizeNumber of edge classes (for classification).
node_types: HashMap<String, usize>Node type mapping.
edge_types: HashMap<String, usize>Edge type mapping.
is_directed: boolWhether graph is directed.
files: Vec<String>Files included in export.
statistics: HashMap<String, f64>Additional statistics.
Trait Implementations§
Source§impl Clone for PyGMetadata
impl Clone for PyGMetadata
Source§fn clone(&self) -> PyGMetadata
fn clone(&self) -> PyGMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PyGMetadata
impl Debug for PyGMetadata
Source§impl<'de> Deserialize<'de> for PyGMetadata
impl<'de> Deserialize<'de> for PyGMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PyGMetadata
impl RefUnwindSafe for PyGMetadata
impl Send for PyGMetadata
impl Sync for PyGMetadata
impl Unpin for PyGMetadata
impl UnwindSafe for PyGMetadata
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