pub struct CommonGraphMetadata {
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
Common metadata shared by PyG and DGL exporters.
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 CommonGraphMetadata
impl Clone for CommonGraphMetadata
Source§fn clone(&self) -> CommonGraphMetadata
fn clone(&self) -> CommonGraphMetadata
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 CommonGraphMetadata
impl Debug for CommonGraphMetadata
Source§impl<'de> Deserialize<'de> for CommonGraphMetadata
impl<'de> Deserialize<'de> for CommonGraphMetadata
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 CommonGraphMetadata
impl RefUnwindSafe for CommonGraphMetadata
impl Send for CommonGraphMetadata
impl Sync for CommonGraphMetadata
impl Unpin for CommonGraphMetadata
impl UnwindSafe for CommonGraphMetadata
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