Graph algorithms should to be installed before serving users' needs.
-
The Connection object provides method
installAlgo
to install algorithms.from ultipa import Connection, ULTIPA_REQUEST, ULTIPA conn = Connection(host='host:port', username="root", password="root") # Install algorithms by specifying the configuration file path and library path ret = conn.installAlgo(ULTIPA_REQUEST.InstallAlgo(configPath="", soPath="")) print(ret.toJSON())
-
The Connection object provides method
showAlgo
to list algorithms.from ultipa import Connection, ULTIPA_REQUEST, ULTIPA conn = Connection(host='host:port', username="root", password="root") ret = conn.showAlgo() print(ret.toJSON())
-
The Connection object provides method
uninstallAlgo
to uninstall algorithms.from ultipa import Connection, ULTIPA_REQUEST, ULTIPA conn = Connection(host='host:port', username="root", password="root") # Uninstall an algorithm by specifying algorithm name ret = conn.uninstallAlgo(ULTIPA_REQUEST.UninstallAlgo(algoName="")) print(ret.toJSON())