[][src]Struct retworkx::PyDAG

pub struct PyDAG { /* fields omitted */ }

Methods

impl PyDAG[src]

pub fn edges(&self, py: Python) -> PyObject[src]

pub fn nodes(&self, py: Python) -> PyObject[src]

pub fn node_indexes(&self, py: Python) -> PyObject[src]

pub fn has_edge(&self, node_a: usize, node_b: usize) -> bool[src]

pub fn successors(&self, py: Python, node: usize) -> PyResult<PyObject>[src]

pub fn predecessors(&self, py: Python, node: usize) -> PyResult<PyObject>[src]

pub fn get_edge_data(&self, node_a: usize, node_b: usize) -> PyResult<&PyObject>[src]

pub fn get_node_data(&self, node: usize) -> PyResult<&PyObject>[src]

pub fn get_all_edge_data(
    &self,
    py: Python,
    node_a: usize,
    node_b: usize
) -> PyResult<PyObject>
[src]

pub fn remove_node(&mut self, node: usize) -> PyResult<()>[src]

pub fn add_edge(
    &mut self,
    parent: usize,
    child: usize,
    edge: PyObject
) -> PyResult<usize>
[src]

pub fn remove_edge(&mut self, parent: usize, child: usize) -> PyResult<()>[src]

pub fn remove_edge_from_index(&mut self, edge: usize) -> PyResult<()>[src]

pub fn add_node(&mut self, obj: PyObject) -> PyResult<usize>[src]

pub fn add_child(
    &mut self,
    parent: usize,
    obj: PyObject,
    edge: PyObject
) -> PyResult<usize>
[src]

pub fn add_parent(
    &mut self,
    child: usize,
    obj: PyObject,
    edge: PyObject
) -> PyResult<usize>
[src]

pub fn adj(&mut self, py: Python, node: usize) -> PyResult<PyObject>[src]

pub fn adj_direction(
    &mut self,
    py: Python,
    node: usize,
    direction: bool
) -> PyResult<PyObject>
[src]

pub fn in_edges(&mut self, py: Python, node: usize) -> PyResult<PyObject>[src]

pub fn out_edges(&mut self, py: Python, node: usize) -> PyResult<PyObject>[src]

pub fn in_degree(&self, node: usize) -> usize[src]

pub fn out_degree(&self, node: usize) -> usize[src]

Trait Implementations

impl Data for PyDAG[src]

impl DataMap for PyDAG[src]

impl DataMapMut for PyDAG[src]

impl GetAdjacencyMatrix for PyDAG[src]

type AdjMatrix = <StableDiGraph<PyObject, PyObject> as GetAdjacencyMatrix>::AdjMatrix

The associated adjacency matrix type

impl GraphBase for PyDAG[src]

type NodeId = NodeIndex

node identifier

type EdgeId = EdgeIndex

edge identifier

impl GraphProp for PyDAG[src]

type EdgeType = Directed

The kind edges in the graph.

impl Index<EdgeIndex<u32>> for PyDAG[src]

type Output = PyObject

The returned type after indexing.

impl Index<NodeIndex<u32>> for PyDAG[src]

type Output = PyObject

The returned type after indexing.

impl IndexMut<EdgeIndex<u32>> for PyDAG[src]

impl IndexMut<NodeIndex<u32>> for PyDAG[src]

impl<'a> IntoEdgeReferences for &'a PyDAG[src]

impl<'a> IntoEdges for &'a PyDAG[src]

type Edges = Edges<'a, PyObject>

impl<'a> IntoEdgesDirected for &'a PyDAG[src]

type EdgesDirected = Edges<'a, PyObject>

impl<'a> IntoNeighbors for &'a PyDAG[src]

type Neighbors = Neighbors<'a, PyObject>

impl<'a> IntoNeighborsDirected for &'a PyDAG[src]

impl<'a> IntoNodeIdentifiers for &'a PyDAG[src]

impl<'a> IntoNodeReferences for &'a PyDAG[src]

impl IntoPy<PyObject> for PyDAG[src]

impl NodeCompactIndexable for PyDAG[src]

impl NodeCount for PyDAG[src]

impl NodeIndexable for PyDAG[src]

impl<'p> PyMappingLenProtocol<'p> for PyDAG[src]

impl<'p> PyMappingProtocol<'p> for PyDAG[src]

impl PyMethodsInventoryDispatch for PyDAG[src]

type InventoryType = PyDAGGeneratedPyo3Inventory

This allows us to get the inventory type when only the pyclass is in scope

impl PyObjectAlloc for PyDAG[src]

impl PyTypeInfo for PyDAG[src]

type Type = PyDAG

Type of objects to store in PyObject struct

type BaseType = PyAny

Base class

impl Visitable for PyDAG[src]

type Map = <StableDiGraph<PyObject, PyObject> as Visitable>::Map

The associated map type

Auto Trait Implementations

impl RefUnwindSafe for PyDAG

impl Send for PyDAG

impl Sync for PyDAG

impl Unpin for PyDAG

impl UnwindSafe for PyDAG

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FromPy<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> IntoPy<U> for T where
    U: FromPy<T>, 
[src]

impl<T> PyMethodsProtocol for T where
    T: PyMethodsInventoryDispatch, 
[src]

impl<T> PyObjectAlloc for T where
    T: PyObjectWithFreeList
[src]

impl<'v, T> PyTryFrom<'v> for T where
    T: PyTypeInfo
[src]

impl<T> PyTypeCreate for T where
    T: PyObjectAlloc + PyTypeObject
[src]

impl<T> PyTypeObject for T where
    T: PyTypeInfo + PyMethodsProtocol + PyObjectAlloc
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.