Introduction to , Netdraw, MySQL, and

Dr. Jiaqi Yan, University of Zurich 1. Install R and R Studio

http://www.rstudio.com/products/rstudio/download/ http://cran.rstudio.com/

Download and install R and R Studio File -> New Project.. -> New Directory Empty Project Set your project directory install.packages(“igraph”) Reading & Practice at Home

 Please read the attached “A (very) short introduction to R”  Or read some other tutorials for R  In later R tutorials, we will mainly use the “igraph” library 2. Install MySQL  Go to http://www.mysql.com/downloads/installer/ to download the latest version of MySQL Installer.

Make Sure you have installed MySQLServer, MySQL Workbench, and MySQL Connectors (J).

Reading & Practice at Home

 Please read the attached “SQL Tutorial”  Or read some other tutorials for SQL  In later data processing tutorials, we will use MySQL to store network data. 3. Setting up Java environment

 Please download the latest JDK from http://www.oracle.com/technetwork/java/javase/downloads/i ndex.html And install the version that matches your operation system.

 Or you can install NetBeans (choose Java SE) https://netbeans.org/community/releases/

After installing the software, the JDK directory will have the structure shown below. The bin directory contains both the compiler and the launcher, and should be contained in the path of the system environment variables. From the desktop, right click the Computer icon. Choose Properties from the context menu. Click the Advanced system settings link, you will see: Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.  In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.  Similarly, you should set up the classpath with the value of:  .;:\Program Files\Java\jdk1.7.0_09\lib\tools.jar;C:\Program Files\Java\jdk1.7.0_09\lib\dt.jar

Reading & Practice at Home

 Please read the attached “Java Programming Basics”  Or read some other tutorials for Java Programming  In later data mining tutorials, we will use Java to crawl data from Openhub 4. Installing NetDraw

 Please download the installing package or netdraw.exe (in zip file) from

 https://sites.google.com/site/netdrawsoftware/download

Reading & Practice at Home

 Please read the attached “A Brief Guide to Using NetDraw”  Or learn some other tools for network visualization  In later tutorials, we will use NetDraw to visualize the network data