Metadata-Version: 2.1
Name: pyflagsercount
Version: 0.5.0
Summary: A package for counting directed cliques in directed graphs
Author-Email: "Jason P. Smith" <jasonsmith.bath@gmail.com>
License: MIT License
         
         Copyright (c) 2024 Jason Smith
         
         Permission is hereby granted, free of charge, to any person obtaining a copy
         of this software and associated documentation files (the "Software"), to deal
         in the Software without restriction, including without limitation the rights
         to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         copies of the Software, and to permit persons to whom the Software is
         furnished to do so, subject to the following conditions:
         
         The above copyright notice and this permission notice shall be included in all
         copies or substantial portions of the Software.
         
         THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
         SOFTWARE.
         
Project-URL: Homepage, https://github.com/JasonPSmith/flagser-count
Requires-Python: >=3.9
Requires-Dist: numpy>=1.17.0
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Description-Content-Type: text/markdown

# flagser-count

A program for counting directed cliques in directed graphs, adapted from https://github.com/luetge/flagser.

## Python package (pyflagsercount)

```sh
pip install pyflagsercount               # from PyPI (once published)
pip install .                            # from a local checkout
pip install git+https://github.com/JasonPSmith/flagser-count.git
```

Python ≥ 3.9. Source installs need a C++ compiler; CMake ≥ 3.15 is fetched automatically by the build frontend if not already present. Pre-built wheels are produced by CI for Linux x86_64, macOS arm64, macOS x86_64, and Windows x64 across CPython 3.9–3.13.

### Testing

```sh
pip install -e .[test]
(cd test && python run_test.py)
```

The test runner shells out to the standalone `flagser-count` binary, so build it first with `make` (see below) before running.

## Standalone CLI (flagser-count, flagser-count-individ)

To build the C++ command-line binaries, clone the repo and run `make`:

```sh
git clone https://github.com/JasonPSmith/flagser-count.git
cd flagser-count
make
```

This produces `./flagser-count` and `./flagser-count-individ` in the repo root. Requirements: a C++14 compiler with `-pthread` support (gcc ≥ 6.4 on Linux).

To verify the CLI:

```sh
(cd test && python run_test.py)
```

## License

See [LICENSE](LICENSE).
