This is still an experimental feature and not part of the release. Please refer to the nightly builds if you wish to try it.
A simple HTTP POST request is used to send the input graph and retrieve its the layouted version. You can just perform your own request to the correct URL and pass all required information. However, as we might change internal APIs we recommend you to use the (very small) wrapper implementations we provide for a specific language. We do not provide a wrapper for each language, feel free to write your own and contact us so we can add it to the list below.
You might want to have a look at the Live section of our exemplary server at http://layout.rtsys.informatik.uni-kiel.de:9444 to play around.
Each zip archive contains the wrapper class you can use to call our service as well as a small example illustrating the usage pattern for the specific language.
String graph = "[graph]"; Dictionary<String, Object> options = new Dictionary<String, Object>(); String layouted = KIELER.KIELERLayout.layout(server, "org.json", "org.json", options, graph);
Available Layout Algorithms and Options
The available layout algorithms along with the available options and some further information can be requested under the following URL. A JSON object is returned, the structure and contained data equals the ServiceData class in the diagram shown below. Furthermore, several algorithms offer a preview image illustration a possible result. You can retrieve this image as a png using the second URL. Optionally the image can be retrieved base64 encoded.