
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
github.com/ornatedoctrin/layout
Current version and API is in experimental stage. Property names may change.
The graph layouting can be used as a command-line tool and as a library.
To install the command-line tool:
go get -u github.com/ornatedoctrin/layout/cmd/glay
To install the package:
go get -u github.com/ornatedoctrin/layout
Minimal usage:
package main
import (
"os"
"github.com/ornatedoctrin/layout"
"github.com/ornatedoctrin/layout/format/svg"
)
func main() {
graph := layout.NewDigraph()
graph.Edge("A", "B")
graph.Edge("A", "C")
graph.Edge("B", "D")
graph.Edge("C", "D")
layout.Hierarchical(graph)
svg.Write(os.Stdout, graph)
}
See other examples in examples
folder.
Currently the layout.Hierarchy
algorithm output is significantly worse than graphviz. It is recommended to use graphviz dot
, if possible.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.