// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen // SPDX-License-Identifier: BSD-3-Clause // // This example... // #include "vtkGraphLayoutView.h" #include "vtkRandomGraphSource.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" int main(int, char*[]) { vtkRandomGraphSource* source = vtkRandomGraphSource::New(); vtkGraphLayoutView* view = vtkGraphLayoutView::New(); view->SetRepresentationFromInputConnection(source->GetOutputPort()); view->ResetCamera(); view->Render(); view->GetInteractor()->Start(); source->Delete(); view->Delete(); return 0; }