From 52b3a22c894ec28ea818e50e30e5f042e0e54a0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Hackl?= Date: Thu, 27 May 2021 09:59:50 +0800 Subject: [PATCH] add test for network properties --- pathpy/tests/test_network.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pathpy/tests/test_network.py b/pathpy/tests/test_network.py index 74014a3..63afd69 100644 --- a/pathpy/tests/test_network.py +++ b/pathpy/tests/test_network.py @@ -3,7 +3,7 @@ # ============================================================================= # File : test_network.py -- Test environment for the Network class # Author : Jürgen Hackl -# Time-stamp: +# Time-stamp: # # Copyright (c) 2016-2019 Pathpy Developers # ============================================================================= @@ -703,6 +703,13 @@ def test_isub_networks(): assert net_2.number_of_edges() == 2 +def test_network_properties(): + """test some properties""" + + net = Network(directed=False) + net.add_edges(('a', 'b'), ('b', 'c'), ('c', 'a')) + + print(net.incoming) # ============================================================================= # eof #