Skip to content

Commit

Permalink
fix lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
zheng-da committed Jan 10, 2019
1 parent 269e1bb commit 5a7d688
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion python/dgl/graph_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ class ImmutableGraphIndex(GraphIndex):
backend_csr: a csr array provided by the backend framework.
"""
def __init__(self, handle):
super(ImmutableGraphIndex, self).__init__(handle)
pass

def init(self, src_ids, dst_ids, edge_ids, num_nodes):
"""The actual init function"""
Expand Down Expand Up @@ -1245,6 +1245,15 @@ def __init__(self, handle, parent, induced_nodes, induced_edges):
self._induced_nodes = induced_nodes
self._induced_edges = induced_edges

def edge_subgraph(self, e):
raise NotImplementedError('immutable graph doesn\'t implement edge_subgraph for now.')

def line_graph(self, backtracking=True):
raise NotImplementedError('immutable graph doesn\'t implement line_graph')

def incidence_matrix(self, typestr, ctx):
raise NotImplementedError('immutable graph doesn\'t implement incidence_matrix for now.')

@property
def induced_edges(self):
"""Return parent edge ids.
Expand Down

0 comments on commit 5a7d688

Please sign in to comment.