Comments (4)
Untested:
import Data.List
label' :: (Graph gr) => gr a b -> Edge -> Maybe b
label' gr (u,v) = lookup v (lsuc gr u)
Not sure if it's worth adding something like this to the library; will think about this.
from fgl.
Tested: ok.
Yes, I think it is worth adding such basic function to ease first adoption of the library (TMHO).
Many thanks by the way.
from fgl.
Pull Requests welcome :)
But it's too easy to have lots of little functions making it difficult to find any particular one.
from fgl.
Le 26 juil. 16, vers 15:34, Ivan Lazar Miljenovic ecrivait:
Pull Requests welcome :)
Ok.
But it's too easy to have lots of little functions making it difficult to find
any particular one.
You are right, I am thinking about the right implementation to avoid
unnecessary functions/code.
Alexandre Delanoë
from fgl.
Related Issues (20)
- DynGraph contraint seems redundant in prettify
- GHC 9.4 compatibility
- Add tag for 5.8.1.0
- 5.8.1.0 crashes when computing dominators in graphs with unreachable nodes HOT 1
- fails to build with ghc-9.6 HOT 3
- Release tag for version 5.8.2.0 is missing HOT 1
- fgl and fgl-arbitrary need bumps for QuickCheck 2.10 and QuickCheck 2.11 HOT 2
- FLG doesn't build with MonadFailDesugaring HOT 4
- fgl-5.6.0.0 fails with ghc-8.6.1 HOT 10
- fgl and fgl-arbitrary incompatible with current QuickCheck
- Data.Graph.Inductive.Basic.undir appears to handle self-edges wrongly
- Data.Graph.Inductive.Query.TransClos.rc is wrongly implemented HOT 5
- Data/Graph/Inductive/NodeMap.hs:159:9-32: Non-exhaustive patterns in Just es' HOT 2
- gsel ignores edges to nodes HOT 1
- Add plain text synonym for `&`. HOT 2
- fgl-arbitrary on Hackage is extremely outdated. HOT 2
- `gfiltermap` can result in inconsistent graph. HOT 1
- Is the PatriciaTree matchGr too strict?
- Documentation updates for predicate functions that rely on match HOT 1
- The insMapEdge family of functions are partial HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fgl.