mirror of
https://github.com/dmlc/dgl.git
synced 2026-06-05 19:54:25 +08:00
* reverse a graph
* Reverse a graph
* Fix
* Revert "Fix"
This reverts commit 1728826b4f.
* Fix
* Fix
* Delete vcs.xml
* Delete Project_Default.xml
* Fix
* Fix
* Fix
* Remove outdated test
* Reorg transform and update reverse (#2)
* Reorg transform and update reverse
* Fix doc and test
* Update test
* Resolve conflict
* CI oriented fix
* Remove outdated import
* Fix import
* Fix import
* define __all__ for wildcard imports
* Fix import
* Address circular imports
* Fix
* Fix test case
* Fix
* Fix
* Remove unused import
* Fix
* Fix
* Fix
109 lines
2.2 KiB
ReStructuredText
109 lines
2.2 KiB
ReStructuredText
.. _apigraph:
|
|
|
|
DGLGraph -- Graph with node/edge features
|
|
=========================================
|
|
|
|
.. currentmodule:: dgl
|
|
.. autoclass:: DGLGraph
|
|
|
|
Adding nodes and edges
|
|
----------------------
|
|
|
|
.. autosummary::
|
|
:toctree: ../../generated/
|
|
|
|
DGLGraph.add_nodes
|
|
DGLGraph.add_edge
|
|
DGLGraph.add_edges
|
|
DGLGraph.clear
|
|
|
|
Querying graph structure
|
|
------------------------
|
|
|
|
.. autosummary::
|
|
:toctree: ../../generated/
|
|
|
|
DGLGraph.number_of_nodes
|
|
DGLGraph.number_of_edges
|
|
DGLGraph.__len__
|
|
DGLGraph.is_multigraph
|
|
DGLGraph.has_node
|
|
DGLGraph.has_nodes
|
|
DGLGraph.__contains__
|
|
DGLGraph.has_edge_between
|
|
DGLGraph.has_edges_between
|
|
DGLGraph.predecessors
|
|
DGLGraph.successors
|
|
DGLGraph.edge_id
|
|
DGLGraph.edge_ids
|
|
DGLGraph.find_edges
|
|
DGLGraph.in_edges
|
|
DGLGraph.out_edges
|
|
DGLGraph.all_edges
|
|
DGLGraph.in_degree
|
|
DGLGraph.in_degrees
|
|
DGLGraph.out_degree
|
|
DGLGraph.out_degrees
|
|
|
|
Transforming graph
|
|
------------------
|
|
|
|
.. autosummary::
|
|
:toctree: ../../generated/
|
|
|
|
DGLGraph.subgraph
|
|
DGLGraph.subgraphs
|
|
DGLGraph.edge_subgraph
|
|
DGLGraph.line_graph
|
|
DGLGraph.reverse
|
|
|
|
Converting from/to other format
|
|
-------------------------------
|
|
|
|
.. autosummary::
|
|
:toctree: ../../generated/
|
|
|
|
DGLGraph.to_networkx
|
|
DGLGraph.from_networkx
|
|
DGLGraph.from_scipy_sparse_matrix
|
|
DGLGraph.adjacency_matrix
|
|
DGLGraph.incidence_matrix
|
|
|
|
Using Node/edge features
|
|
------------------------
|
|
|
|
.. autosummary::
|
|
:toctree: ../../generated/
|
|
|
|
DGLGraph.nodes
|
|
DGLGraph.edges
|
|
DGLGraph.ndata
|
|
DGLGraph.edata
|
|
DGLGraph.node_attr_schemes
|
|
DGLGraph.edge_attr_schemes
|
|
DGLGraph.set_n_initializer
|
|
DGLGraph.set_e_initializer
|
|
|
|
Computing with DGLGraph
|
|
-----------------------
|
|
|
|
.. autosummary::
|
|
:toctree: ../../generated/
|
|
|
|
DGLGraph.register_message_func
|
|
DGLGraph.register_reduce_func
|
|
DGLGraph.register_apply_node_func
|
|
DGLGraph.register_apply_edge_func
|
|
DGLGraph.apply_nodes
|
|
DGLGraph.apply_edges
|
|
DGLGraph.send
|
|
DGLGraph.recv
|
|
DGLGraph.send_and_recv
|
|
DGLGraph.pull
|
|
DGLGraph.push
|
|
DGLGraph.update_all
|
|
DGLGraph.prop_nodes
|
|
DGLGraph.prop_edges
|
|
DGLGraph.filter_nodes
|
|
DGLGraph.filter_edges
|