In queueing theory, a discipline within the mathematical theory of probability, a Gnetwork (generalized queueing network^{[1]} or Gelenbe network^{[2]}) is an open network of Gqueues first introduced by Erol Gelenbe as a model for queueing systems with specific control functions, such as traffic rerouting or traffic destruction, as well as a model for neural networks.^{[3]} A Gqueue is a network of queues with several types of novel and useful customers:
 positive customers, which arrive from other queues or arrive externally as Poisson arrivals, and obey standard service and routing disciplines as in conventional network models,
 negative customers, which arrive from another queue, or which arrive externally as Poisson arrivals, and remove (or 'kill') customers in a nonempty queue, representing the need to remove traffic when the network is congested, including the removal of "batches" of customers ^{[4]}^{[5]}^{[6]}
 "triggers", which arrive from other queues or from outside the network, and which displace customers and move them to other queues
A product form solution superficially similar in form to Jackson's theorem, but which requires the solution of a system of nonlinear equations for the traffic flows, exists for the stationary distribution of Gnetworks while the traffic equations of a Gnetwork are in fact surprisingly nonlinear, and the model does not obey partial balance. This broke previous assumptions that partial balance was a necessary condition for a product form solution. A powerful property of Gnetworks is that they are universal approximators for continuous and bounded functions, so that they can be used to approximate quite general inputoutput behaviours.^{[7]}
Definition
A network of m interconnected queues is a Gnetwork if
 each queue has one server, who serves at rate μ_{i},
 external arrivals of positive customers or of triggers or resets form Poisson processes of rate for positive customers, while triggers and resets, including negative customers, form a Poisson process of rate ,
 on completing service a customer moves from queue i to queue j as a positive customer with probability , as a trigger or reset with probability and departs the network with probability ,
 on arrival to a queue, a positive customer acts as usual and increases the queue length by 1,
 on arrival to a queue, the negative customer reduces the length of the queue by some random number (if there is at least one positive customer present at the queue), while a trigger moves a customer probabilistically to another queue and a reset sets the state of the queue to its steadystate if the queue is empty when the reset arrives. All triggers, negative customers and resets disappear after they have taken their action, so that they are in fact "control" signals in the network,
 note that normal customers leaving a queue can become triggers or resets and negative customers when they visit the next queue.
A queue in such a network is known as a Gqueue.
Stationary distribution
Define the utilization at each node,
where the for satisfy

(1)

(2)
Then writing (n_{1}, … ,n_{m}) for the state of the network (with queue length n_{i} at node i), if a unique nonnegative solution exists to the above equations (1) and (2) such that ρ_{i} for all i then the stationary probability distribution π exists and is given by
Proof
It is sufficient to show satisfies the global balance equations which, quite differently from Jackson networks are nonlinear. We note that the model also allows for multiple classes.
Gnetworks have been used in a wide range of applications, including to represent Gene Regulatory Networks, the mix of control and payload in packet networks, neural networks, and the representation of colour images and medical images such as Magnetic Resonance Images.
Response time distribution
The response time is the length of time a customer spends in the system. The response time distribution for a single Gqueue is known^{[8]} where customers are served using a FCFS discipline at rate μ, with positive arrivals at rate λ^{+} and negative arrivals at rate λ^{−} which kill customers from the end of the queue. The Laplace transform of response time distribution in this situation is^{[8]}^{[9]}
where λ = λ^{+} + λ^{−} and ρ = λ^{+}/(λ^{−} + μ), requiring ρ < 1 for stability.
The response time for a tandem pair of Gqueues (where customers who finish service at the first node immediately move to the second, then leave the network) is also known, and it is thought extensions to larger networks will be intractable.^{[9]}
References
 ^ Gelenbe, Erol (Sep 1993). "GNetworks with Triggered Customer Movement". Journal of Applied Probability. 30 (3): 742–748. doi:10.2307/3214781. JSTOR 3214781.
 ^ Gelenbe, Erol; Fourneau, JeanMichel (2002). "Gnetworks with resets". Performance Evaluation. 49 (1/4): 179–191. doi:10.1016/S01665316(02)00127X.
 ^ Harrison, Peter (2009). "Turning Back Time – What Impact on Performance?". The Computer Journal. 53 (6): 860–868. CiteSeerX 10.1.1.574.9535. doi:10.1093/comjnl/bxp021.
 ^ Gelenbe, Erol (1991). "Productform queueing networks with negative and positive customers". Journal of Applied Probability. 28 (3): 656–663. doi:10.2307/3214499. JSTOR 3214499.
 ^ Gelenbe, Erol (1993). "GNetworks with signals and batch removal". Probability in the Engineering and Informational Sciences. 7 (3): 335–342. doi:10.1017/s0269964800002953.
 ^ Artalejo, J.R. (Oct 2000). "Gnetworks: A versatile approach for work removal in queueing networks". European Journal of Operational Research. 126 (2): 233–249. doi:10.1016/S03772217(99)004762.
 ^ Gelenbe, Erol; Mao, ZhiHong; Da Li, Yan (1999). "Function approximation with spiked random networks". IEEE Transactions on Neural Networks. 10 (1): 3–9. CiteSeerX 10.1.1.46.7710. doi:10.1109/72.737488. PMID 18252498.
 ^ ^{a} ^{b} Harrison, P. G.; Pitel, E. (1993). "Sojourn Times in SingleServer Queues with Negative Customers". Journal of Applied Probability. 30 (4): 943–963. doi:10.2307/3214524. JSTOR 3214524.
 ^ ^{a} ^{b} Harrison, Peter G. Response times in Gnets. 13th International Symposium on Computer and Information Sciences (ISCIS 1998). pp. 9–16. ISBN 9051994052.