Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 8, 2024
1 parent 7aed8f0 commit fb3ab2b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
1 change: 1 addition & 0 deletions examples/intro/intro_causal_graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
and missing edge. We will review some of the fundamental causal graphs used
in causal inference, and their differences from traditional graphs.
"""

import networkx as nx
import numpy as np
import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions examples/visualization/plot_timeseries_graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
For comparing different graphs with the same layout, see :ref:`ex-draw-graphs`
"""

from pywhy_graphs import StationaryTimeSeriesDiGraph
from pywhy_graphs.viz import draw, timeseries_layout

Expand Down
1 change: 1 addition & 0 deletions pywhy_graphs/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Version number."""

from importlib.metadata import version # type: ignore

__version__ = version(__package__)
12 changes: 4 additions & 8 deletions pywhy_graphs/classes/networkxprotocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,13 @@ class NetworkXProtocol(Protocol):
_adj: Dict

@property
def nodes(self):
...
def nodes(self): ...

@property
def edges(self):
...
def edges(self): ...

@abstractmethod
def add_node(self, node):
...
def add_node(self, node): ...

@abstractmethod
def remove_edge(self, u, v):
...
def remove_edge(self, u, v): ...

0 comments on commit fb3ab2b

Please sign in to comment.