IHey everyone!
I built a model using the nw extension, and it works perfectly in NetLogo Desktop. But when I try to run it in NetLogo Web, it doesn’t work. From what I understand, it seems like the nw extension isn’t compatible with the web version.
Has anyone encountered this before or have any ideas on how to fix it? Is there an alternative way to work with networks in NetLogo Web using another extension?
Thanks! 😊
Hi Carlos,
Hi,
The nw extension is not currently supported in NetLogo Web because it relies on the following libraries.
Source Library version
net.sf.jgrapht jgrapht 0.8.3,
net.sourceforge.collections collections-generic 4.01,
colt colt 1.2.0,
net.sf.jung jung-algorithms 2.0.1,
net.sf.jung jung-api 2.0.1,
net.sf.jung jung-graph-impl 2.0.1,
net.sf.jung jung-io 2.0.1,
org.gephi gephi-toolkit 0.9.7
The following are excluded (not needed) in the libraries for gephi-toolkit
Source Library
org.gephi db-drivers
org.gephi algorithms-plugin
org.gephi preview-plugin
org.gephi mostrecentfiles-api
org.gephi io-exporter-preview
org.gephi appearance-plugin
org.gephi visualization-api
com.itextpdf itextpdf
net.sf.trove4j trove4j
org.apache.poi poi-ooxml
org.jfree jfreechart
org.netbeans.modules org-netbeans-core
An AI generated summary for the search "gephi-toolkit javascript" gives the following summary, which to me indicates that it may be possible to make the nw extension work in NetLogo Web, however we do not currently have the developer resources to do so.
The Gephi Toolkit is a Java library that allows developers to programmatically access and utilize Gephi's core functionalities. It provides tools for graph manipulation, layout algorithms, filtering, and data input/output. While the Gephi Toolkit itself is written in Java, it can be integrated with JavaScript-based applications through various methods, such as using a server-side Java backend or employing technologies like WebSockets for communication.
Gephi Lite is a web-based, lighter version of Gephi, built using React. It demonstrates the possibility of running graph visualization tools within a web browser, showcasing an alternative approach to using the full Gephi desktop application or the Gephi Toolkit directly.
Using Gephi's functionalities in a JavaScript environment typically involves these approaches:
Server-Side Processing:
The Gephi Toolkit can be used in a Java-based server application. This server can then expose APIs that a JavaScript front-end can call to perform graph analysis and processing tasks. The server handles the computationally intensive tasks using the Gephi Toolkit, while the JavaScript client focuses on visualization and user interaction.
Inter-process Communication:
A local server running the Gephi Toolkit can communicate with a JavaScript application using WebSockets or other inter-process communication methods. This setup allows for real-time data exchange and interaction between the client and server.
WebAssembly (Wasm):
While still an evolving area, compiling parts of Gephi or similar graph libraries to WebAssembly could enable more direct usage within a browser. However, this approach is complex and may have performance limitations.
Gephi Lite:
As a React-based web application, Gephi Lite offers a more direct way to work with graphs in a browser environment. While it might not have all the features of the full Gephi application or the Gephi Toolkit, it provides a lighter alternative for common graph visualization tasks.
--
Aaron Brandes, Software Developer
Center for Connected Learning and Computer-Based Modeling
--
You received this message because you are subscribed to the Google Groups "netlogo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
netlogo-user...@googlegroups.com.
To view this discussion visit
https://groups.google.com/d/msgid/netlogo-users/3fc6d55e-5271-4c83-af07-9cff51849ee0n%40googlegroups.com.