rendered paste body/* Functions for drawing the circles and info on screen */#include <QGraphicsScene>#include <QGraphicsItem>#include <QPainter>#include <QObject>class node : public QObject, public QGraphicsItem{ //Q_Objectpublic: int x, y, r; node(int, int, int); void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);private: //void drawNode(int, int, int, QPainter *painter, QWidget *widget);};node::node(int _x, int _y, int _r){ x = _x; y = _y; r = _r;}void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget){ painter -> setBrush(Qt::black); painter -> drawEllipse(x, y, (r * 2), (r * 2));}/*void node::drawNode(int x, int y, int r, QPainter *painter, QWidget *){ painter -> setBrush(Qt::black); painter -> drawEllipse(x, y, (r * 2), (r * 2));}*/