Comments (3)
I think this is a corner case that we didn't cover -- setting features when column does not exist. I will fix that in a patch. The edge list order is correctly captured. Here is the result on my PC:
>>> import networkx as nx
>>> import dgl
>>> import torch
>>> G = nx.DiGraph()
>>> G.add_nodes_from([0, 1, 2])
>>> G.add_edges_from([(0, 1), (0, 2)])
>>> G.edges
OutEdgeView([(0, 1), (0, 2)])
>>> G.nodes
NodeView((0, 1, 2))
>>> DG = dgl.DGLGraph(G)
>>> DG.edges
OutEdgeView([(0, 1), (0, 2)])
>>> DG.nodes
NodeView((0, 1, 2))
>>> DG.edge_list
[(0, 1), (0, 2)]
Setting features to non-exist column could be supported by padding zero. This has already been supported by FrameRef in the new subgraph branch (see this test file. However, the Graph class does not handle it correctly at the moment. Will fix this.
from dgl.
Such fix will be included in PR #39
from dgl.
Yes, switching to subgraph branch fixes problem (1).
from dgl.
Related Issues (20)
- [Graphbolt] Support fetch label from feature store.
- Graphbolt: Enable separate stream for CUDA memory copy and computation HOT 2
- [Graphbolt] Enable Link Prediction Example `model.inference`
- [Bug] Unit test failure of test_BuiltinDataset HOT 1
- [test/example] accuracy threshold too high
- [Example] Many examples are failed with later version of numpy HOT 2
- OOM issue with dgl.unbatch on GPU HOT 3
- "import dgl" error, when interacting with front-end and back-end of website. Help!! HOT 3
- Icon not shown HOT 2
- [CPU-sampling] Avoid access/init cuda instances at each sampling (child) process HOT 1
- [Misc] Investigate whether we need buffer for inference in #6557
- [Graphbolt] Create database based feature fetch in separated repo to demonstrate extensibility.
- [Graphbolt] Quickstart link prediction example does not work on windows.
- Get no error while using `list` object in `bg.set_batch_num_nodes()` but will get an AttributeError when using AvgPool to pool the batched graph HOT 1
- [DistGB] Integrate DistDGL with GraphBolt (sampling stage only) HOT 1
- cuda11.6 versions of dgl cannot read dgl graph files generated by older versions(dgl==0.4.3post2) HOT 2
- is there has max edge count limit? HOT 2
- [Graphbolt] Performances of various UVA index select kernels. HOT 5
- [GraphBolt][Doc] update tutorials on doc page HOT 1
- [GraphBolt][Doc] Add tutorials for GraphBolt components HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dgl.