generate canvas with given network element and options
Arguments
- elements
node and edge objects, it should be list of element.
- options
rendering / interaction options, can be created with buildIoption(), buildRoption()
- layout
list type layout, it must be contain name and other optional values
- width
canvas width.
- height
canvas height.
- elementId
id used to identify in application.
- ...
other parameters