Skip to content

Commit

Permalink
fix output of functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kris524 committed Aug 25, 2022
1 parent b1d295a commit fef6492
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions retworkx-core/src/connectivity/conn_components.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// License for the specific language governing permissions and limitations
// under the License.
use petgraph::graph::NodeIndex;
use super::NullGraph;
// use super::NullGraph;
use hashbrown::HashSet;
use petgraph::algo;
use std::collections::VecDeque;
Expand Down Expand Up @@ -191,7 +191,7 @@ where
}
}

pub fn node_connected_component<G>(graph: G, node: usize) -> HashSet<usize>
pub fn node_connected_component<G>(graph: G, node: usize) -> Result<HashSet<usize>, InvalidNode >
where
G: GraphProp + IntoNeighborsDirected + Visitable + IntoNodeIdentifiers,
G::NodeId: Eq + Hash,
Expand Down

0 comments on commit fef6492

Please sign in to comment.