Skip to content

ogregorio/graphg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Graphg CLI

This application aims to create adjacency matrix that represent direct graphs with and without labels.

The application was developed in Java, a pre-release is available here, on Github.

Use

CREATE commands

Type:

To create a labeled graph.

graphg >> CREATE WITH_LABEL

To create a not labeled graph.

graphg >> CREATE NO_LABEL

To create a not labeled graph undirected.

graphg >> CREATE NO_LABEL_UNDIRECTED

ADD commands

Without labels

(just work with NO_LABEL and NO_LABEL_UNDIRECTED graphs)

Type:

to implement a vertex

graphg >> ADD VERTEX VERTEX1

to implement a edge

graphg >> ADD EDGE VERTEX1 VERTEX2

With labels

(just work with WITH_LABEL graphs)

Type:

to implement a vertex

graphg >> ADD VERTEX LABEL

to implement a edge

graphg >> ADD EDGE VERTEX1 VERTEX2 LABEL

COUNT commands

(just work with NO_LABEL_UNDIRECTED graphs)

Type:

to show all cycles in graph with any size

graphg >> COUNT CYCLES

to show all cycles in graph with specific size

graphg >> COUNT CYCLES 4

PRINT command

Type:

to print graph in display


graphg >> PRINT

PGM command

Type:

to segment the background/foreground of an image using network flow graph and min cut

graphg >> PGM /origin_source /destiny_source.

to segment the background/foreground of an image using imperative method

graphg >> PGMALT /origin_source /destiny_source

image background/foreground segmentation demo - runs the two methods above in an example image

graphg >> PGMDEMO

About

A Graph Visual/CLI implementation with Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages