Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
emma58 committed Aug 12, 2024
1 parent d467bd2 commit 81d35f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyomo/contrib/piecewise/ordered_3d_j1_triangulation_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from pyomo.common.dependencies import networkx as nx
import itertools


def _get_double_cube_graph():
# Graph of a double cube
sign_vecs = list(itertools.product((-1, 1), repeat=3))
Expand Down Expand Up @@ -41,6 +42,7 @@ def _get_double_cube_graph():

return G


"""
This code was used to generate the data structure in this file. It should never
need to be run again, but is here for the sake of documentation:
Expand Down Expand Up @@ -103,6 +105,7 @@ def _get_double_cube_graph():
"""


# This file was generated using generate_ordered_3d_j1_triangulation_data.py
# Data format: Keys are a pair of simplices specified as the direction they are facing,
# as a standard unit vector or negative of one, and a tag, 1 or 2, disambiguating which
Expand Down
1 change: 1 addition & 0 deletions pyomo/contrib/piecewise/tests/test_triangulations.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ def test_grid_hamiltonian_paths(self):
self.check_grid_hamiltonian(3, 5)
self.check_grid_hamiltonian(4, 3)


@unittest.skipUnless(networkx_available, "Networkx is not available")
class TestHamiltonianPaths(unittest.TestCase):
def test_hamiltonian_paths(self):
Expand Down

0 comments on commit 81d35f4

Please sign in to comment.