-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skipping the "is not a valid attribute" for custom attributes #52
Comments
Could you explain your use case? I think the attr check doesn't happen during parsing
So you could reuse the parsing library and then create your own more lenient graph
|
I want to use your library to load some state machines, for this I need some extra node attributes like "initial state". Dot isn't complaining on unknown attributes so it's compatible with graphviz tools, but the Analyze function is throwing an error... |
@awalterschulze Would that be possible to add a function like |
I think this is where we first added the error check for attributes. |
I don't like adding globals here. We would need to inject it and make a new Maybe this is something to experiment with on a fork, to see how much code it would be? |
I would be interested in this, I'll take a stab at it. |
@fsaintjacques did you get anywhere with this? |
@sinkingpoint I ended up implementing my own |
Ah fair. I ended up doing the same, although it does seem like overkill |
I'd quite like this as well. If nobody else grabs it, I may take a stab at it. |
Mine is at https://github.com/sinkingpoint/kiora/blob/main/cmd/kiora/config/graph.go if you want something to work off of. I don't really have the bandwidth to support it |
Hello Walter, thanks for the lib.
Would there be a way to skip the "is not a valid attribute" for attributes name not in your list?
Cheers
The text was updated successfully, but these errors were encountered: