graph_tool.dynamics.ContinuousStateBase#
- class graph_tool.dynamics.ContinuousStateBase(g, make_state, params, t0=0, s=None, stype='double')[source]#
Bases:
objectBase state for continuous-time dynamics. This class it not meant to be instantiated directly.
Methods
copy()Copy state.
get_diff(dt)Returns the current time derivative for all the nodes.
Returns the internal
VertexPropertyMapwith the current state.solve(t, *args, **kwargs)Integrate the system up to time
t.solve_euler(t[, dt])Integrate the system up o time
tusing a simple Euler's method with step sizedt.- get_diff(dt)[source]#
Returns the current time derivative for all the nodes. The parameter
dtis the time interval in consideration, which is used only if the ODE has a stochastic component.If enabled during compilation, this algorithm runs in parallel.
- get_state()[source]#
Returns the internal
VertexPropertyMapwith the current state.
- solve(t, *args, **kwargs)[source]#
Integrate the system up to time
t. The remaining parameters are passed toscipy.integrate.solve_ivp(). This solver is not suitable for stochastic ODEs.