pub struct EdgeListInput<NI: Idx, EV = ()> { /* private fields */ }Expand description
Reads a graph from a file that contains an edge per line.
An edge is represented by a source node id and a target node id. The two node ids must be separated by a 1-byte character (e.g. whitespace or tab).
The node count of the resulting graph is the highest node id within the file plus one. The edge count will be twice the number of lines in the file.
§Example
ⓘ
> cat my_graph.edgelist
0 1
0 2
1 3
2 0Trait Implementations§
Source§impl<NI: Idx, EV> Default for EdgeListInput<NI, EV>
impl<NI: Idx, EV> Default for EdgeListInput<NI, EV>
Source§impl<NI: Idx, EV> InputCapabilities<NI> for EdgeListInput<NI, EV>
impl<NI: Idx, EV> InputCapabilities<NI> for EdgeListInput<NI, EV>
type GraphInput = EdgeList<NI, EV>
Auto Trait Implementations§
impl<NI, EV> Freeze for EdgeListInput<NI, EV>
impl<NI, EV> RefUnwindSafe for EdgeListInput<NI, EV>where
NI: RefUnwindSafe,
EV: RefUnwindSafe,
impl<NI, EV> Send for EdgeListInput<NI, EV>where
EV: Send,
impl<NI, EV> Sync for EdgeListInput<NI, EV>where
EV: Sync,
impl<NI, EV> Unpin for EdgeListInput<NI, EV>
impl<NI, EV> UnsafeUnpin for EdgeListInput<NI, EV>
impl<NI, EV> UnwindSafe for EdgeListInput<NI, EV>where
NI: UnwindSafe,
EV: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more