---
name: "LeafMetric"
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/LeafMetric"
---

# LeafMetric(3tulip)

LeafMetric.h - Compute the number of leaves in the subtree induced by each node.

## NAME

LeafMetric -

**LeafMetric.h** - Compute the number of leaves in the subtree induced by each node.

## SYNOPSIS

`#include <LeafMetric.h>`

### Public Member Functions

**LeafMetric** (const tlp::PropertyContext &)\
 bool **check** (std::string &)\
 bool **run** ()\

## Detailed Description

**LeafMetric.h** - Compute the number of leaves in the subtree induced by each node.

Computes the number of leaves in the subtree induced by each node.

**HISTORY**

- •

  20/08/2001 Verson 0.0.1: Initial release

**Note:**

This algorithm assigns to each node a value defined as following : If two nodes are in the same connected component they have the same value else they have a different value.

**Author:**

David Auber University Bordeaux I France: Email:auber@tulip-software.org

**LICENCE**

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

## Constructor & Destructor Documentation

### LeafMetric::LeafMetric (const tlp::PropertyContext &)

## Member Function Documentation

### bool LeafMetric::check (std::string &)

### bool LeafMetric::run ()

## Author

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