Francy Graphs It is possible to build Graphs, direct or indirect.

Please see examples section.

Please see Francy-JS for client implementation.
Categories In this section we show the Francy Graph Categories. true or false Identifies Graph objects. true or false Identifies GraphType objects. true or false Identifies GraphDefaults objects. true or false Identifies Shape objects. true or false Identifies ShapeType objects. true or false Identifies ShapeDefaults objects. true or false Identifies Link objects. true or false Identifies LinkDefaults objects.
Families In this section we show the Francy Graph Families.
Representations In this section we show the Francy Graph Representations. true or false Checks whether an Object has a Graph internal representation. true or false Checks whether an Object has a GraphDefaults internal representation. true or false Checks whether an Object has a GraphType internal representation. true or false Checks whether an Object has a Shape internal representation. true or false Checks whether an Object has a ShapeDeafults internal representation. true or false Checks whether an Object has a ShapeType internal representation. true or false Checks whether an Object has a Link internal representation. true or false Checks whether an Object has a LinkDeafults internal representation.
Operations In this section we show the Francy Graph Operations. Graph Every object to draw will be a subclass of this object. This will allow all the objects to contain the same base information.

Examples:

Create a simple Graph of type GraphType.DIRECTED and simple Shapes connected with Links:
gap> graph := Graph(GraphType.DIRECTED); gap> SetSimulation(graph, false); gap> shape1 := Shape(ShapeType.SQUARE); gap> shape1!.layer := 1; gap> shape2 := Shape(ShapeType.TRIANGLE); gap> shape2!.layer := 3; gap> link := Link(shape1, shape2); gap> Add(graph, link); gap> Add(graph, [shape1, shape2]);

Create a simple Graph of type GraphType.UNDIRECTED and a simple Shape with a TriggerEvent.RIGHT_CLICK Callback:
gap> graph := Graph(GraphType.UNDIRECTED); gap> shape := Shape(ShapeType.SQUARE); gap> MyFunction := function() Add(graph, Shape(ShapeType.Circle)); return graph; end; gap> callback := Callback(TriggerType.RIGHT_CLICK, MyFunction); gap> Add(shape, callback); gap> Add(graph, shape);

Removes all nodes from gaph Removes all nodes from gaph Graph Add IsLink to a specific Graph. Graph Remove IsLink from a specific Graph. Graph Add IsShape to a specific Graph. Graph Remove IsShape from a specific Graph. Shape Every object to draw will be a subclass of this object. This will allow all the objects to contain the same base information.

Shape Gets a Shape node from a graph by ID. List(Shape) Gets a Shape node from a graph by ID. Shape Add Menu to a specific Shape. Shape Remove Menu from a specific Shape. Shape Add Callback to a specific Shape. Shape Remove Callback from a specific Shape. Shape Add Callback to a specific Shape. Shape Remove Callback from a specific Shape. Link Creates a Link between the two Shape.

List(Link) Creates a Link between the Shape of the first list and the second list.

Link Gets a Link from a graph by ID. List(Link) Gets a Link from a graph.
Global In this section we show the Global Callback Francy Records for multi purpose.
Attributes In this section we show the Francy Core Attributes IsString with the title of the object Sets the title on the Shape. Supports LaTex syntax that gets translated, if enabled on the client.

Sets the title of the Shape. IsInt The Color of the current shape.

Sets the Color value. IsInt The Position in the X Axis of the Shape in the Canvas in pixels

Sets the Position in the X Axis of the Shape in the Canvas in pixels IsInt The Position in the Y Axis of the Shape in the Canvas in pixels

Sets the Position in the Y Axis of the Shape in the Canvas in pixels IsPosInt The Size of the Shape

Sets the Size of the Shape IsInt The Layer in which the node will be placed. This property is also used to apply a color based on a scale

Sets the Layer number. IsShape The ParentShape in which the node will be placed. This property is also used to apply a color based on a scale

Sets the ParentShape. IsBool True if enabled otherwise False Simulation is a property that sets the simulation behavior by applying forces to organize the graphics, without the need to provide custom positions, in the client implementation.

Sets the Simulation behavior. IsBool True if enabled otherwise False Collapsed is a property that sets to collapsed the graphic structure by default

Sets the Collapsed behavior. IsBool True if enabled otherwise False Collapsed is a property that sets to collapsed the graphic structure by default

Sets the Collapsed behavior. IsBool True if enabled otherwise False Collapsed is a property that sets to collapsed the graphic structure by default

Sets the Collapsed behavior. IsInt The Weight of the current link.

Sets the Weight value. IsInt The Length of the current link.

Sets the Length value. IsBoolean The Invisible of the current link.

Sets the Invisible value. IsInt The Color of the current link.

Sets the Color value. IsInt The Title of the current link.

Sets the Title value.