---
name: "tlp_ConnectedTest"
section: "3tulip"
platform: "linux"
package: "tulip-doc"
version: "3.1.2-2.3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/tlp_ConnectedTest"
---

# tlp\_ConnectedTest(3tulip)

class for testing if the graph is connected

## NAME

tlp::ConnectedTest -

class for testing if the graph is connected

## SYNOPSIS

`#include <ConnectedTest.h>`

Inherits **tlp::GraphObserver**.

### Static Public Member Functions

static bool **isConnected** (**Graph** \*graph)\
 static void **makeConnected** (**Graph** \*graph, std::vector\< **edge** \> &addedEdges)\
 static unsigned int **numberOfConnectedComponents** (**Graph** \*graph)\
 static void **computeConnectedComponents** (**Graph** \*graph, std::vector\< std::set\< **node** \> \> &components)\

## Detailed Description

class for testing if the graph is connected

## Member Function Documentation

### static bool tlp::ConnectedTest::isConnected (Graph \* graph)` [static]` Returns true if the graph is connected (ie. it exists an undirected path between each pair of nodes) else false.

## Author

Generated automatically by Doxygen for Tulip Graph Library from the source code.
