how-monochromatic
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (6.5%) to scientific vocabulary
Keywords
Repository
Basic Info
- Host: GitHub
- Owner: SebTee
- License: mit
- Language: Haskell
- Default Branch: main
- Homepage: https://sebtee.github.io/how-monochromatic/
- Size: 5.99 MB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
how-monochromatic
A tool to analyse bi-coloured graphs and determine how close to being monochromatic they are.
Installation Guide
You need to have the Haskell Tool Stack installed.
Run the following commands:
bash
git clone https://github.com/SebTee/how-monochromatic.git
cd ./how-monochromatic
stack install
User Guide
The installed executable can be run by running howmono on the command line.
It takes no command line arguments.
It only reads a string encoded bi-coloured graph from the stdin.
The string encoding of the bi-coloured graph is defined in the
ParseBCG documentation
(See the example g.txt file below).
The program will return a value between 0 and 1. The closer to 1 the returned value is the closer to being monochromatic the input bi-coloured graph is.
Example Command
The following command reads the bi-coloured graph from the g.txt file and
pipes it into the stdin of the howmono executable.
bash
cat ./g.txt | howmono
Contents of g.txt
1 green 2 green 1 0
1 blue 3 blue 1 0
1 red 4 green 0 1
1 red 6 red 1 0
2 red 3 red 1 0
2 blue 5 blue 1 0
3 green 4 green 1 0
3 green 6 red 0 1
4 red 5 red 1 0
4 red 6 green 0 1
4 blue 6 blue 1 0
5 green 6 green 1 0
This example will return 0.5.
Owner
- Name: Sebastian Tee
- Login: SebTee
- Kind: user
- Location: London
- Company: Titian Software Ltd.
- Website: https://www.linkedin.com/in/sebt
- Repositories: 12
- Profile: https://github.com/SebTee
Citation (CITATION.cff)
cff-version: 1.2.0 message: "If you use this software, please cite it as below." authors: - family-names: "Tee" given-names: "Sebastian" orcid: " https://orcid.org/0000-0002-2482-9097" title: "how-monochromatic" url: "https://github.com/SebTee/how-monochromatic" date-released: 2022-06-22 version: 0.1.0.0
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 0
- Total pull requests: 2
- Average time to close issues: N/A
- Average time to close pull requests: 4 minutes
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- SebTee (2)