Comments (7)
I agree, that the visibility of the graph is vital for handling complex cases.
But at the moment the structures are public and you can easily obtain the access to the fields like that:
let mut g = graph!(id!("id");;
match g {
Graph::Graph { id, strict, stmts } => {}
Graph::DiGraph { id, strict, stmts } => {
match stmts.get(0){
None => {}
Some(Stmt::Node(node)) => {}
Some(stm) => {}
}
}
}
Or do you mean another visibility?
from graphviz-rust.
Hm correct me if I'm wrong, but shouldn't dot_structures be public here:
https://github.com/besok/graphviz-rust/blob/master/src/lib.rs#L81
pub use dot_structures::*;
Im not able to access it when using the crate :(
from graphviz-rust.
well. Perhaps, it can be useful but honestly, you should have an access to the structures if I don't misunderstand it.
Have you had a look at the following repo? https://github.com/besok/test-graphviz-rust.git
from graphviz-rust.
interesting. It works with graphviz-rust 0.1.2 but it does not work with graphviz-rust 0.2.0
from graphviz-rust.
Indeed. I will give a look in the evening.
from graphviz-rust.
it turned out there were no references to the underling crates in the main crate so therefore I added them evidenly
It should work properly in the new version.
from graphviz-rust.
perfect :) thanks
from graphviz-rust.
Related Issues (20)
- Error when parsing comment after final closing bracket HOT 1
- Can’t handle escStrings and attribute names starting with “_” (e.g. the `GraphAttributes` in a simple graph’s `dot`/`xdot` output) HOT 1
- Implement `Into<CommandArg>` for `Layout`, `Format`, … HOT 2
- Release new version for into-attr-derive HOT 1
- Add license entry to Cargo.toml HOT 1
- Dot parser is forbidding characters it should not within the "double quoted string" variant of IDs. HOT 2
- Node ports starting with a "compass letter" breaks parsing HOT 2
- png parsing HOT 2
- `NodeId` does not derive `Eq` HOT 2
- DotPrinter is adding an unneeded space after edges and before the semi-colon when there are no edge attributes.
- DotPrinter is adding an extra level of indentation on all statements
- Add support for printing nodes with multiple attributes on separate lines. HOT 1
- Can you use the graph! macro from a vec of nodes! macro ? HOT 3
- Update the docs for the macroses
- Accept labels without \" at the beginning and end HOT 1
- Provide example usage of SubgraphAttributes HOT 2
- Add macros for generating graph attributes
- dot pest update HOT 1
- Tests failing on macOS HOT 6
- Add Clone/Copy impls for enum cmd::Format, export a version of exec that takes a rendered graph, add more descriptive error messages HOT 3
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 graphviz-rust.