Skip to content

Commit 60a86c7

Browse files
committed
fix: Always use network in run(Network& network)
Fixes #364
1 parent e64c6dd commit 60a86c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/InfomapBase.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ void InfomapBase::run(Network& network)
163163
if (!isMainInfomap())
164164
throw std::logic_error("Can't run a non-main Infomap with an input network");
165165

166-
if (m_network.numNodes() == 0) {
167-
m_network.postProcessInputData();
168-
if (m_network.numNodes() == 0) {
166+
if (network.numNodes() == 0) {
167+
network.postProcessInputData();
168+
if (network.numNodes() == 0) {
169169
throw std::domain_error("Network is empty");
170170
}
171171
}

0 commit comments

Comments
 (0)