simple_pathes

command module
v0.0.0-...-bacbb72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2018 License: MIT Imports: 2 Imported by: 0

README

simple_pathes

simple_pathes is library for get all pathes in graph using DFS

Usage:

  1. set edges
  2. call dfs

Example:

package main

import (
	"fmt"
	"github.com/lebovski/simple_pathes/graph"
)

func main() {
	var ces = graph.Edges{
		{"a", "b"},
		{"b", "f"},
		{"b", "d"},
		{"a", "c"},
		{"c", "d"},
		{"c", "j"},
		{"d", "e"},
		{"e", "f"},
		{"j", "f"},
		{"e", "c"},
	}
	fmt.Printf("\n%v\n\n", ces.DFS("a", "f"))
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL